Why is our application calling route multiple times? #2692
Unanswered
kopax-polyconseil
asked this question in
Q&A
Replies: 1 comment 2 replies
-
please read the Important Defaults section in the docs. With the default staleTime of zero, react-query will do background updates to keep your data accurate. |
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.
-
We are working on this application which use
[email protected]
.So far, we can see two react query hooks that are calling our endpoints too many times:
/me
,/favorites
:Our hooks looks like :
and
We use a react query cache provider, we expected to see react-query handling the queries strategy, instead, we see multiple queries. Any clue what is going on wrong
Beta Was this translation helpful? Give feedback.
All reactions