Zustand 05 ⚛️ Async Actions — Handling asynchronous operations & API calls
Zustand does not have a built-in concept of async actions. An action is a function in the store, and a function can be async. That is the entire mechanism. The action calls await on a promise, then calls set with the result. Zustand does not intercept the promise, does not track its state, and does…