reactotron-plugin-zustand
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

reactotron-plugin-zustand

Plugin to monitor states from zustand.

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: "*".

Captura de Tela 2023-06-23 às 00 09 08

Updates V2

  • Enable snapshot functions
  • Code improvements

Package Sidebar

Install

npm i reactotron-plugin-zustand

Weekly Downloads

1,310

Version

2.0.3

License

MIT

Unpacked Size

8.91 kB

Total Files

5

Last publish

Collaborators

  • joalisonpereira