2.0.4 • Published 10 months ago

@mj-studio/reactotron-plugin-zustand v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

reactotron-plugin-zustand

Plugin to monitor states from zustand.

npm.io npm.io npm.io npm.io

Install

npm i -D reactotron-plugin-zustand

Setup

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
2.0.4

10 months ago

2.0.3

10 months ago