T
TanStack3y ago
genetic-orange

Partial update query without refetching everything

HI There, Does anyone know if it's possible to partially update a query without refetching everything? I'm working on a feature that fetches a large array of data from the backend and I want to be able to post individual updates to the backend and have that reflected in the frontend. I'd prefer not to have to fetch the whole set of data again after each update as the product is sometime used in areas with low internet connectivity, partial update would be best Thanks!
2 Replies
sunny-green
sunny-green3y ago
How about queryClient.setQueryData after mutation?
genetic-orange
genetic-orangeOP3y ago
Thanks, ill check that out!

Did you find this page helpful?