v2.18.1
Changed 1
- Use optional chaining for storage.subscribe in atomWithStorage
Fixed 2
- Subscriber not notified when derived read calls store.set
- Add Symbol.observable type support to ObservableLike
This release fixes a regression introduced in v2.12.1, which affects an uncommon edge case.
What's Changed
- fix(vanilla): subscriber not notified when derived read calls store.set by @dmaskasky in https://github.com/pmndrs/jotai/pull/3245
- fix(vanilla/utils/atomWithObservable): add 'Symbol.observable' type support to 'ObservableLike' by @sukvvon in https://github.com/pmndrs/jotai/pull/3253
- refactor(vanilla/utils/atomWithStorage): use optional chaining for 'storage.subscribe' by @sukvvon in https://github.com/pmndrs/jotai/pull/3260
Full Changelog: https://github.com/pmndrs/jotai/compare/v2.18.0...v2.18.1