github pmndrs/zustand v3.6.2

latest releases: v5.0.0-alpha.6, v5.0.0-alpha.5, v5.0.0-alpha.4...
2 years ago

v3.6.0 introduced middleware types trying to infer store types as much as possible. However, it doesn't work well for several cases, and users need to type manually which was actually hard. In this version, middleware types are simplified and let users to explicitly type when needed more easily. Many examples are in tests/middlewareTypes.test.tsx. If you find issues or need some more typing examples, please report them.

What's Changed

  • fix(middleware): simplify middleware types and allow explicit typing by @dai-shi in #617

Full Changelog: v3.6.1...v3.6.2

Don't miss a new zustand release

NewReleases is sending notifications on new releases.