background
tools & workflows
1 sources
problems with State management in react (zustand)
What happened
I'm a newcomer to Zustand and have a background in Flutter and using BLoCS/Cubits for state management. There are some conceptual similarities between the two, but I'm still a bit uncertain about best practices in how to structure things in a Zustand application. Some things that are a bit unclear to me are: 1. UI State (modals/dialogs etc.) Should simple UI state such as whether a modal is open or not be managed with React state (useState), or should it be managed in a Zustand application state
Business impact
Reported by r/reactjs. Monitor for further developments.
Sources
Related stories