there are zustand store with actions i need to in some action to get current state and…
- User
there are zustand store with actions i need to in some action to get current state and call other actions from store in the some action
- Assistant
In Zustand, a small, fast state management solution for React, you can create a store with both state and actions. If you want to access the current state and call other actions from within an action, you can achieve that by using the function to access the current state and then invoke other actions from there.