v3.6.2
版本发布时间: 2021-10-30 08:52:37
pmndrs/zustand最新发布版本:v5.0.0-rc.2(2024-09-15 11:17:18)
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 https://github.com/pmndrs/zustand/pull/617
Full Changelog: https://github.com/pmndrs/zustand/compare/v3.6.1...v3.6.2