v2.20.0
Changed 3
- Avoid getInternalBuildingBlock function in internals
- Refactor Rev3 type narrowing for onMount hooks
- Use lazy hooks in ensureAtomState for new atom state
Fixed 1
- Guard atomOnInit hook with hasOnInit
This release improves performance in high-throughput scenarios. Huge kudos to @dmaskasky!
What's Changed
- breaking(internals): avoid getInternalBuildingBlock function by @dai-shi in https://github.com/pmndrs/jotai/pull/3293
- refactor(internals): Rev3 type narrowing for onMount hooks by @dmaskasky in https://github.com/pmndrs/jotai/pull/3311
- fix(internals): guard atomOnInit hook with hasOnInit by @dmaskasky in https://github.com/pmndrs/jotai/pull/3312
- refactor(internals): lazy hooks in ensureAtomState for new atom state by @dmaskasky in https://github.com/pmndrs/jotai/pull/3313
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.19.1...v2.20.0