Skip to content
Discussion options

You must be logged in to vote

setQueryData invalidates the query and causes a refetch (hence the re-render). If the refetch isn't necessary in your case you could pass {refetch: false} as setQueryData's options (haven't tried that, but from the docs it seems it can help). Otherwise, you can extract the part of the component that needs data, so that only the smaller part will re-render.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by winner106
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