Socket
Book a DemoInstallSign in
Socket

reactotron-plugin-zustand

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactotron-plugin-zustand

Plugin to monitor states from zustand

latest
Source
npmnpm
Version
2.0.8
Version published
Weekly downloads
6.6K
46.96%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

reactotron

FAQs

Package last updated on 02 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts