Can we invalidate all queries when loading the cache from persistent storage? #5207
-
Is it possible to invalidate all the fresh queries when loading them from persistent storage? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
use the |
Beta Was this translation helpful? Give feedback.
use the
PersistQueryClientProvider
in v4, which has anonSuccess
callback that gets fired after successful restore from persistent storage. There, you can invalidate if you want.