Post

๐Ÿšข @tanstack.com Query v5.63.0 ships with a great new feature: The ability to unsubscribe an observer from the cache. This will hopefully help in react-native, where screens might stay mounted even if they aren't visible. Unsubscribing makes sure those don't re-render and won't trigger fetches.

github.comRelease v5.63.0 ยท TanStack/queryVersion 5.63.0 - 1/8/25, 2:21 PM Changes Feat react-query: allow useQuery and useQueries to unsubscribe from the query cache with an option (#8348) (e2bc216) by Dominik Dorfmeister Packages @tan...

Nice feature! I remember you were working on a PR to reduce observers via some staleTime change, do you know if that is something still being looked into? Thanks Dom!

I spend a good chunk of time on those refactorings, but they didn't amount to anything meaningful

0 reposts2 likes

No replies yet.