Replies: 1 comment 3 replies
-
The two additional render are from the useMutation which updates the loading information: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below is my component, which is re-rendering 5x after mutation when the data changes (instead of 3x), because I call the query hook multiple times. I want to call the useQuery multiple-times because I need to access the data on more places, but without extra re-renders
If I'm changing some data for example in redux, so there is no problem to read them on multiple-places and there will be only one re-render when the data changes, but here after the mutation I see re-render on every usage of the
useQuery
.How to avoid that?
Beta Was this translation helpful? Give feedback.
All reactions