Skip to content

v3.1.0

Compare
Choose a tag to compare
@dai-shi dai-shi released this 03 Sep 13:16

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