pmndrs/zustand
 Watch   
 Star   
 Fork   
5 days ago
zustand

v5.0.6

Some very minor changes.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.5...v5.0.6

2025-05-21 20:05:14
zustand

v5.0.5

It comes with some small improvements.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/zustand/compare/v5.0.4...v5.0.5

2025-05-02 07:41:08
zustand

v5.0.4

This fixes module resolution issue for React Native users.

What's Changed

New Contributors

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

2025-01-07 22:20:43
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

2025-01-07 21:00:13
zustand
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