Optimistic updates without re-rendering everything?
Hi, I have a shopping cart. When a user changes the quantity of some item, I'd like to do an optimistic update along with the mutation.
If I call:
All shopping cart items are re-rendered, each component is created from scratch, scroll position is lost.
Is there any way to do the update a single property of one item without re-rendering everything?
SolidJS has a SetStore API function for fine-grained updates (see docs - tutorial and api reference). Does TanStack Query expose this function?
If I call:
All shopping cart items are re-rendered, each component is created from scratch, scroll position is lost.
Is there any way to do the update a single property of one item without re-rendering everything?
SolidJS has a SetStore API function for fine-grained updates (see docs - tutorial and api reference). Does TanStack Query expose this function?