0.0.14 • Published 5 months ago

zustand-di v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

0.0.13

5 months ago

0.0.14

5 months ago

0.0.11

5 months ago

0.0.12

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago