Replies: 1 comment 1 reply
-
looking at this code, the component should only re-render if the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is probably something I am doing wrong because I can't figure out a minimal repro with this issue. I have something like:
Using
use-what-changed
from https://github.com/simbathesailor/use-what-changed, I observe thatdata
returned by useQuery is changing even though they have the same value. I confirm this in that addinguseDeepCompareMemo(() => data, [data])
gets me the behaviour I want. I expected react-query to already be doing a deep compare memo on the selected data internally. Is this correct? If so, what am I doing wrong?Beta Was this translation helpful? Give feedback.
All reactions