github pmndrs/zustand v3.6.2

latest releases: v5.0.1, v5.0.0, v5.0.0-rc.2...
3 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.