This fixes various edge cases. Huge thanks to @dmaskasky ! 🎉
What's Changed
- fix: flushPending in async write by @dai-shi in #2804
- fix: flush pending finally everywhere by @dmaskasky in #2818
- fix: rethrow falsy errors thrown in flushPending by @dmaskasky in #2820
- fix: setAtom uses stale pending on atom unmount by @dmaskasky in #2811
- fix: onMount setSelf does not notify listeners by @dmaskasky in #2815
- refactor(core): Use iterative approach in recompute dependents by @dmaskasky in #2821
- refactor(store): prefer epoch number comparisons to indicate value change by @dmaskasky in #2828
Full Changelog: v2.10.2...v2.10.3