#Re-render 1 component but not another via the same queryKey?
6 messages · Page 1 of 1 (latest)
Can confirm this works well. I'm using selects a lot to prevent table rerendering. Selecting individual values in cells.
This is on data that is either polled, or streamed in multiple times per second. So constantly rewritten, only rerendered on select changes.
Hmm doesn’t seem to work for me.
Like I have two same query keys, one makes an update in a component, the other components select method returns an object with an ID and some other data. Both components are refetched
can you show a reproduction please?If you return the same data from select (can be a new reference as it will be structurally shared), your component shouldn't re-render