v2.19.1
Changed 4
- Replace nextDeps with prevDeps in internals
- Reduce recomputeInvalidatedAtoms overhead for better performance
- Reduce flushPending overhead for better performance
- Prefer no-any in types
Fixed 3
- Use symbol index signature in atomWithObservable to avoid Symbol.observable type reference
- Check if atom has dependencies before doing mountDependencies work for better performance
- Check if atom has onMount property before queueing processOnMount callback for better performance
This release includes several small refactors to improve performance.
What's Changed
- fix(vanilla/utils/atomWithObservable): use symbol index signature to avoid 'Symbol.observable' type reference by @sukvvon in https://github.com/pmndrs/jotai/pull/3274
- refactor(internals): replace nextDeps with prevDeps by @dmaskasky in https://github.com/pmndrs/jotai/pull/3278
- refactor(internals): reduce recomputeInvalidatedAtoms overhead (performance) by @dmaskasky in https://github.com/pmndrs/jotai/pull/3284
- refactor(internals): reduce flushPending overhead (performance) by @dmaskasky in https://github.com/pmndrs/jotai/pull/3285
- fix(internals): check if atom has dependencies before doing mountDependencies work (performance) by @dmaskasky in https://github.com/pmndrs/jotai/pull/3290
- fix(internals): check if atom has onMount property before queueing processOnMount callback (performance) by @dmaskasky in https://github.com/pmndrs/jotai/pull/3291
- refactor(types): prefer no-any by @dai-shi in https://github.com/pmndrs/jotai/pull/3304
New Contributors
- @aio39 made their first contribution in https://github.com/pmndrs/jotai/pull/3277
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.19.0...v2.19.1