Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper data reload upon wallet switch #79

Open
dchernokur opened this issue Sep 6, 2024 · 0 comments
Open

Proper data reload upon wallet switch #79

dchernokur opened this issue Sep 6, 2024 · 0 comments

Comments

@dchernokur
Copy link
Collaborator

dchernokur commented Sep 6, 2024

We need to come up with reliable way to refetch/reset data in the app upon user switching the wallet in the respective wallet.

  • listen to the event about changing current wallet
  • refetch all active queries (make them depend on current wallet? just invalidate all query keys?)
  • reset states and data in inputs and forms to avoid any input leftovers of the previous user
  • navigating away from the pages/components user should not have access to (for example if some token/vault is selected where new user is not an admin of etc)
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

No branches or pull requests

1 participant