refetchInterval and rerenders? #3662
Unanswered
tamis-laan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
useQuery returns status fields, like |
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.
-
I have a simple hook based on react query:
The function validateToken checks secure storage and checks if there is a token. Every 1 second this check is performed. I noticed however that everything in my app is re-rendered on each refetch. Why is this? The content of the token does not change. How do I get around this?
Beta Was this translation helpful? Give feedback.
All reactions