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
These days I'm using Zustand for global state management, to store things like auth tokens, side menu status, global loading status and so on. But what about using it to handle all data api requests globally or micro state? I've done it in the past, but I'm not sure if it is a good practice and I'd like to know what do you think about this.
By micro state management, I mean to deal with a complex group of states of a given view, like a stepper component with multiple forms, for example, so I'd have a form a the root of a module and would use Zustand to store everything related to it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
These days I'm using Zustand for global state management, to store things like auth tokens, side menu status, global loading status and so on. But what about using it to handle all data api requests globally or micro state? I've done it in the past, but I'm not sure if it is a good practice and I'd like to know what do you think about this.
By micro state management, I mean to deal with a complex group of states of a given view, like a stepper component with multiple forms, for example, so I'd have a form a the root of a module and would use Zustand to store everything related to it.
Beta Was this translation helpful? Give feedback.
All reactions