yarn zustand 3.1.0
v3.1.0

latest releases: 5.0.0-alpha.6, 5.0.0-alpha.5, 5.0.0-alpha.4...
3 years ago

This release is mainly for TypeScript users.

The base State type is stricter.

In v3.0.3:
image

In v3.1.0:
image

To fix it:
image

See also:

New combine middleware

This will combine two parts of state into one. The first part is primitive state, and the second part is actions that depend on set.

image

The resulting type is inferred from the state creator.

image

Don't miss a new zustand release

NewReleases is sending notifications on new releases.