Replies: 1 comment 2 replies
-
yes, the best approach is to set a Also, keep in mind that if you query is |
Beta Was this translation helpful? Give feedback.
-
yes, the best approach is to set a Also, keep in mind that if you query is |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
I am fetching data on the homepage that will most likely not change during a user session. When going back and forth between the homepage and another page,(using React-Router Lazy Loading), that data is fetched again because there is no active instance after switching to the other page.
I don't want this to happen. Because, if possible, I want to avoid network requests whenever possible.
Based on my understanding of the docs, using QueryObserverOptions property staleTime, would be my best guess here.
What's your thoughts on this? How do you approach this?
I'm looking for some insights on the matter!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions