Skip to content

Why does refetching a query seem to trigger two fetches ? #1402

Answered by kitten
strblr asked this question in Q&A
Discussion options

You must be logged in to vote

It's not actually the first is aborted rather quickly and this is due to the render cycle and effect cycle being separate in React.

I could go into some details here but the tl;dr is not to use network-only as a default or as input at all to hooks. I have a small explanation written up on the topic here: #1395 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by strblr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants