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'm wondering if it would be possible to add an option to disable the persistence of some queries in, let's say. the LocalStoragePersistor?
I'd prefer for instance not to save any user-related data in an unsafe localStorage.
For instance we could have an option such as this:
const{ data }=useQuery(['user',locale],()=>fetchUser(locale),{// Other options excluded...excludeFromPersistor: true// <----- New option});
Shall I use a different queryClient for these kind of data instead? If there's an easy way to achieve it already I must have missed it from the documentation.
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
-
Hi,
I'm wondering if it would be possible to add an option to disable the persistence of some queries in, let's say. the
LocalStoragePersistor
?I'd prefer for instance not to save any user-related data in an unsafe localStorage.
For instance we could have an option such as this:
Shall I use a different queryClient for these kind of data instead? If there's an easy way to achieve it already I must have missed it from the documentation.
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions