This adds useShallow
hook to cover some use cases that are deprecated with v4.4.0 change. Check out the guide.
Migration Guide
#1991 requires something like below if you are using the devtools
middleware and TypeScript.
import { devtools } from 'zustand/middleware'
+ import type {} from '@redux-devtools/extension'
What's Changed
- fix(types)(middleware/devtools): avoid copying types by @dai-shi in #1991
- fix(traditional): make defaultEqualityFn optional in TS Types by @charkour in #2060
- feat: add useShallow by @FaberVitale in #2090
New Contributors
- @aykutkardas made their first contribution in #1993
- @michelts made their first contribution in #1997
- @elusive made their first contribution in #2001
- @mayank1513 made their first contribution in #2015
- @fdb made their first contribution in #2029
- @tmkx made their first contribution in #2032
- @OshriAsulin made their first contribution in #2028
- @ivanquirino made their first contribution in #2047
- @stavkamil made their first contribution in #2071
- @NaamuKim made their first contribution in #2088
- @FaberVitale made their first contribution in #2090
Full Changelog: v4.4.1...v4.4.2