-
Hi mate, i have using nextjs with react-query as SSR Mode and client mode. but fetcher always trigger every single moment in pages. its something wrong on my setup? small reproduce: |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jun 18, 2021
Replies: 1 comment 3 replies
-
It is using the cache, otherwise, you’d see a loading state between each navigation. It is also keeping your data up to date by doing background refetches. Have you read https://react-query.tanstack.com/guides/important-defaults ? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
isggwp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is using the cache, otherwise, you’d see a loading state between each navigation. It is also keeping your data up to date by doing background refetches. Have you read https://react-query.tanstack.com/guides/important-defaults ?