Socket
Socket
Sign inDemoInstall

zustand-di

Package Overview
Dependencies
5
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zustand-di

initialize zustand stores with react context


Version published
Weekly downloads
45
increased by7.14%
Maintainers
1
Install size
10.5 kB
Created
Weekly downloads
 

Readme

Source

zustand-di

use react context to init zustand stores. dependency injection for zustand with react.

Build Size Version Downloads

A simplified patch of createContext from zustand/context that might be deprecated in the future. This patch removes useStoreApi.

  • This is 633 B compared to the zustand one of 831 B.
  • Opinionated: forces use of selector via typescript.

Installation

npm install zustand zustand-di

Peer Dependencies

For zustand-di@0.0.7 and higher

{
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
  "zustand": "^4.1.0"
}

For zustand-di@0.0.6 and below

{
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
  "zustand": "^4.0.0"
}

Usage

See zustand docs.

Keywords

FAQs

Last updated on 21 Dec 2023

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