glifio / wallet

Glif Wallet
https://wallet.glif.io
80 stars 32 forks source link

Transaction history is stale after switching wallet #945

Closed Schwartz10 closed 2 years ago

Schwartz10 commented 2 years ago
  1. Load up your default wallet
  2. Switch wallet
  3. See transaction history from previous wallet?

Almost like the useQuery hooks dont react to the prop changes to the address variable?

Schwartz10 commented 2 years ago

This still seems to occasionally happen, but i can't tell yet how to replicate reliably.

There are also several queries that are obviously getting made, so ideally we test this where data is fetched from each query, and we see that each one returns fresh information on a per address basis

navFooh commented 2 years ago

Not being able to replicate this at the moment

Schwartz10 commented 2 years ago

It's possible it was an artifact of other errors going on in the hooks that are now fixed? I'll keep it open a little longer and close it if we don't see it for a bit