2.0.8 • Published 7 months ago

reactotron-plugin-zustand v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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 Reactotron from 'reactotron-react-js';
import reactotronZustand from 'reactotron-plugin-zustand';

Reactotron.configure({ name: 'Project name' })
  .use(
    //add this line 🙌
    reactotronZustand({
      stores: [{ name: 'auth', store: useAuth }],
      omitFunctionKeys: true
    })
  )
  .connect();
OptionDescriptionDefault
storesList of stores to be monitored by the Reactotron Zustand plugin.
stores[].nameName of the store to be monitored.
stores[].storeReference to the store hook to be monitored.
omitFunctionKeysOmit state functionsfalse

Usage

Install Reactotron Client and add your store observer, using the example "auth" or all states using: "*".

2.0.8

7 months ago

2.0.5

10 months ago

2.0.4

10 months ago

2.0.7

10 months ago

2.0.6

10 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago