Skip to content

fix(uikit): invalidate dashboard data after wallet rename#608

Open
Yny4ii wants to merge 1 commit into
tonkeeper:mainfrom
Yny4ii:fix/uikit-dashboard-stale-name-after-rename
Open

fix(uikit): invalidate dashboard data after wallet rename#608
Yny4ii wants to merge 1 commit into
tonkeeper:mainfrom
Yny4ii:fix/uikit-dashboard-stale-name-after-rename

Conversation

@Yny4ii

@Yny4ii Yny4ii commented May 4, 2026

Copy link
Copy Markdown
Contributor

What's fixed

After renaming a wallet on /wallet-settings, navigating to /dashboard showed the old wallet name until a full page reload. The dashboard now reflects the new name immediately.

Root cause

Dashboard rows cache embedded Account snapshots inaccount_name cells fromuseDashboardData. The React Query key for dashboard data depends on wallet ids and other factors, but not on account display fields, so renaming only invalidated [QueryKey.account] and left dashboardData queries serving stale cells.

Solution

After a successful rename inuseMutateRenameAccount and useMutateRenameAccountDerivations, call invalidateQueries([QueryKey.dashboardData]) so dashboard queries refetch and rebuild client columns (including names) from the updated accounts state.

Demo

Before After
2026-05-04.13.06.25.mov
2026-05-04.12.31.55.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant