The best way to use zustand global state management when patch request handling
I am using zustand for global state management with react and typescript. The question is how to handle the state update and reset effectively, for example when patch request scenarios where user might change input value but cancel that request. For example, let’s say we got useStore.ts like below: