Is there a way to rerun only partial code of a query?
Hey I have a question about queries. I have a query which makes multiple get requests and then does a Promise.all to resolve all promises.
As you can see I then do some filter logic based on the result. I would like now to have something like a filter function which updates on query key or whatever, but leave the api calls in cache.
basically something like
2 Replies
rival-black•2y ago
you're looking for the
select
optionrival-black•2y ago
Render Optimizations | TanStack Query Docs
React Query applies a couple of optimizations automatically to ensure that your components only re-render when they actually need to. This is done by the following means:
structural sharing