Socket
Socket
Sign inDemoInstall

zustand-opine

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zustand-opine

An opinionated Zustand store for namespaced slices


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Zustand Opine

Not ready for use yet. API still very much in flux

Goals for 1.0.0

  • Structured store, with each slice being split up into initialState, actions, derived, etc.
  • Redux Devtools support with automatic action names
  • Derived state, with optional dependency / query hadnling so complex state doesn't get computed every update
  • Fully typed, such that autocomplete it available on all state, actions, etc.
  • Use Immer to simplify nested mutations
  • Fully tested with several example use-cases
  • Testing, linting, formatting enforced by CI

Opine Definition

transitive verb

To state as an opinion

Purpose

An opinionated Zustand store.

  • Automates naming of actions for Redux Dev Tools
  • Includes Immer for simpler state management
  • Reduces boilerplate when writing a namespaced multi-slice store

Demo

https://codesandbox.io/s/zustand-namedslices-5qkke?file=/src/App.js

FAQs

Last updated on 08 Feb 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc