Always refetching when router with react-router changes #3731
Unanswered
mateosantosdev
asked this question in
Q&A
Replies: 2 comments
-
please provide a codesandbox reproduction |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you read these docs about when react-query performs a background refetch? It is hard to figure out what's going on without a sample code. |
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've played with refetchOnMount, refetchOnWindowFocus, refetchOnReconnect and staleTime without success. Everytime router changes, my backend receive a petition.
This is my code:
index.tsx
The query
Any idea what I'm doing wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions