-
While using I use the I have tried with a cacheTime of 0 to the useInfiniteQuery but it still remains in the local storage. One way of removing from the persisted cache is to use the Is there a way I can not make a certain query not be added to the cache or not persist results of a particular query at all ? Thanks & Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you can provide a custom function in the
Please note that the default implementation is:
so you might want to keep that check. What works well is additionally match the |
Beta Was this translation helpful? Give feedback.
you can provide a custom function in the
dehydrateOptions
that will include or exclude a query:Please note that the default implementation is:
so you might want to keep that check. What works well is additionally match the
query.queryKey
orquery.meta
to check if something has been marked for exclusion.