Skip to content

Offline cache options #70

Answered by a-jaouen
a-jaouen asked this question in Q&A
Discussion options

You must be logged in to vote

I found an easy way.

You can simply add a specific key to your queryKey.

Let's say 'no-persistency'.

Then, you use a custom serialize function in which you remove all queries that includes a 'no-persistency' key.

That's it 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by a-jaouen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant