useQuery do a deep comparison (or something similar) before updating/reassigning the data attribute?HELLO only prints if the data changes. Given object reference changes trigger useEffect when used as a dependency, my intuition is that HELLO would print every time I click the button, the queryFn reassigning data on success, but this is not the case. If I were to change the data returned by fetchSomeData (say, I make a change in the db), then HELLO is printed, giving me the impression that react query only reassigns data/the object reference after a deep comparison or something like that. https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 6h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago