Cache Response that lives after an page reload #6115
Unanswered
FleetAdmiralJakob
asked this question in
Q&A
Replies: 1 comment
-
have a look at persisters: https://tanstack.com/query/v4/docs/react/plugins/persistQueryClient |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to cache my response even if the page reloads.
With
stale time
I got so far that if my query parameters don't change it does not refetch and is instead using the cache.But it seems that the
stale time
cache does not live after a reload.Is it able to store the response e.g. in the local storage, so it also does not refetch after a page reload, with tooling from tanstack/react-query?
Beta Was this translation helpful? Give feedback.
All reactions