Use of useQuery causes 4 renders #685
-
Simply using I would expect it to only render 3 times:
Why four? Is that intended, or is it a bug? I have created a codesandbox to demonstrate. |
Beta Was this translation helpful? Give feedback.
Answered by
tannerlinsley
Jul 1, 2020
Replies: 1 comment 1 reply
-
The fourth render is the query being marked as |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MichaelDeBoey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The fourth render is the query being marked as
stale
.