JSPM

@mj-studio/reactotron-plugin-zustand

2.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q18784F
  • License MIT

Plugin to monitor states from zustand

Package Exports

  • @mj-studio/reactotron-plugin-zustand
  • @mj-studio/reactotron-plugin-zustand/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mj-studio/reactotron-plugin-zustand) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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