Replies: 1 comment 2 replies
-
could you create a codesandbox example please? It sounds more like you have |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, after long investigation I came to result that when I use fetchQuery all my cached date (active and also inactive) are removed from cache. So for example:
I have 2 pages. When I go from page 1 to page 2 I call fetchQuery. On page 2 I call three useQuery(). I go back to page 1 all three queries are in state inactive. Then I go again to page 2 I call fetchQuery and my cache is cleared and all three useQuery are fetched again although they dont need to be because I had them in cache.
I'm not sure if it's bug or feature 😄
I've got version 3.7.1
Beta Was this translation helpful? Give feedback.
All reactions