Skip to content

prevent unnecessary re-renders #3076

Answered by TkDodo
bug-brain asked this question in Ideas
Discussion options

You must be logged in to vote

I've converted your example to react-18 and our react-18 compatible preview build, and it seems to render correctly there:

https://codesandbox.io/s/double-render-react-18-dnv07?file=/src/index.js

I think this is loosely the same as this bug:

where also calling setQueryData and setting some react-state causes inconsistencies.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bug-brain
Comment options

Answer selected by bug-brain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants