You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal: Reduce de amount of requests being sent to the server
Depends On: None
Description
When the user sells multiple items one after the another, multiple requests are being sent to the server. Batching should be added in order to reduce the amount of requests being sent.
Tips on how to solve/should be solved
Tip
Use the new Tanstack library "TanStack Pacer" useBatchedCallback
Add optmistic updates with useMutate when clicking the selling button
To do
Install the library "TanStack Pacer"
Add optmistic updates with useMutate when selling an item
Combine the optmistic updates with the useBatchedCallback
Description
When the user sells multiple items one after the another, multiple requests are being sent to the server. Batching should be added in order to reduce the amount of requests being sent.
Tips on how to solve/should be solved
Tip
Use the new Tanstack library "TanStack Pacer"
useBatchedCallbackAdd optmistic updates with useMutate when clicking the selling button
To do