Replies: 1 comment 3 replies
-
the data for if you really don't want the background updates, it's best to set a |
Beta Was this translation helpful? Give feedback.
3 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.
-
I'm pretty new to react-query and, on my use case, I want to keep the response cache between 2 different pages/routes.
Let's suppose a scenario that you have 2 pages, each page renders a different content than the other and have different component files too.
On a scenario that we access
/foo
and get the first 10 items offoo
;We move now to another page of the same app,
/bar
, getting the first 10 items too;Moving again to
/foo
, the 10 first items are requested again.Is there a way to keep the request data even when change route just like redux?
Beta Was this translation helpful? Give feedback.
All reactions