pmndrs/zustand
 Watch   
 Star   
 Fork   
29 days ago
zustand

v5.0.3

ExtractState is a type util to extract state type from store type.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.2...v5.0.3

2024-12-04 23:02:29
zustand

v5.0.2

This fixes some issues in middleware.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.1...v5.0.2

2024-10-30 19:59:43
zustand

v5.0.1

This fixes shallow function for some edge cases.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.0...v5.0.1

2024-10-14 21:55:52
zustand

v5.0.0

🎉🎉🎉 Zustand v5 🐻🐻🐻

TL;DR

  • No new features
  • Migration from v4 should be smooth.

Migration Guide

Read the migration guide carefully: https://github.com/pmndrs/zustand/blob/main/docs/migrations/migrating-to-v5.md

Frequently Reported Issue

During the RC period, some users encountered the following infinite loop error:

Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

This case was already a non-ideal behavior in v4 but appears more explicitly as an error in v5. While there are several ways to resolve this, using useShallow often fixes the problem.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.5...v5.0.0

2024-09-15 11:02:52
zustand

v5.0.0-rc.2

Hopefully, this will be the last RC, unless we have serious bug reports in #2741.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.0-rc.1...v5.0.0-rc.2

2024-08-27 09:19:58
zustand

v5.0.0-rc.1

This version includes some minor changes. Please report any issues if you find.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.0-rc.0...v5.0.0-rc.1

2024-08-16 09:06:34
zustand

v5.0.0-rc.0

Please see the migration guide and share your feedback.

What's Changed

image

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.5...v5.0.0-rc.0

2024-08-15 10:29:36
zustand

v4.5.5

This improves the persist middleware behavior for an edge case.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.4...v4.5.5

2024-06-26 20:35:02
zustand

v4.5.4

There was an issue in v4.5.3 with some bundlers.

What's Changed

Full Changelog: https://github.com/pmndrs/zustand/compare/v4.5.3...v4.5.4