Skip to content

fix: network switch properly clears all cached data and resets UI state#806

Merged
dangershony merged 3 commits intomainfrom
fix/network-switch-data-cleanup
May 5, 2026
Merged

fix: network switch properly clears all cached data and resets UI state#806
dangershony merged 3 commits intomainfrom
fix/network-switch-data-cleanup

Conversation

@dangershony
Copy link
Copy Markdown
Member

Summary

  • Add FounderProjectsDocument to DeleteAllDataAsync so founder project cache is cleared on wipe
  • Call ShellViewModel.ResetAfterDataWipe on network switch to reset invested balance, view cache, portfolio, and signature store
  • Add FindProjectsViewModel.ClearCacheAsync to clear in-memory + disk project cache on switch
  • Show spinner on network switch confirm button while operation is in progress
  • Refresh invested balance in header after portfolio finishes loading
  • Support targeted wallet rebuild via optional WalletId param in RebuildAllWalletBalancesAsync

- Add FounderProjectsDocument to DeleteAllDataAsync
- Call ShellViewModel.ResetAfterDataWipe on network switch (resets invested
  balance, view cache, portfolio, signature store)
- Add FindProjectsViewModel.ClearCacheAsync to clear in-memory + disk cache
- Add spinner on network switch confirm button (IsSwitchingNetwork state)
- Refresh invested balance after portfolio finishes loading via IsLoading subscription
- Support targeted wallet rebuild via optional WalletId param in RebuildAllWalletBalancesAsync
@dangershony dangershony merged commit 452e1cc into main May 5, 2026
3 checks passed
@dangershony dangershony deleted the fix/network-switch-data-cleanup branch May 5, 2026 12:37
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