You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dont have an easy way to reproduce it so I did not create an issue, but I just spent a few hours on this, maybe it will be useful to someone.
In my React Native app, I was using the (alpha) AsyncStoragePersistor plugin to persist the cache in AsyncStorage.
After migrating to React Query v4 and to the new AsyncStoragePersister plugin, my refreshQueries calls were no longer refreshing non-stale queries.
After a lot of debugging, I solved the issue by switching to a new key for the persister plugin, and all my issues went away instantly. So if you are seeing a weird behaviour when upgrading and were using the old persistors, try to change the key!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I dont have an easy way to reproduce it so I did not create an issue, but I just spent a few hours on this, maybe it will be useful to someone.
In my React Native app, I was using the (alpha)
AsyncStoragePersistor
plugin to persist the cache inAsyncStorage
.After migrating to React Query v4 and to the new
AsyncStoragePersister
plugin, myrefreshQueries
calls were no longer refreshing non-stale queries.After a lot of debugging, I solved the issue by switching to a new
key
for the persister plugin, and all my issues went away instantly. So if you are seeing a weird behaviour when upgrading and were using the old persistors, try to change the key!Beta Was this translation helpful? Give feedback.
All reactions