@mj-studio/reactotron-plugin-zustand
v2.0.4
Published
Plugin to monitor states from zustand
Maintainers
Readme
reactotron-plugin-zustand
Plugin to monitor states from zustand.
Install
npm i -D reactotron-plugin-zustandSetup
Go to file "Reactotron.config.ts" or your config reactotron from project, is similar to this file:
import reactotronZustand from 'reactotron-plugin-zustand';
Reactotron.configure({ name: 'Project name' })
.use(
//add this line 🙌
reactotronZustand({ stores: [{ name: 'auth', store: useAuth }] })
)
.connect();Usage
Install Reactotron Client and add your store observer, using the example "auth" or all states using: "*".
Updates V2
- Enable snapshot functions
- Code improvements
