Skip to content

v1.3.0

Compare
Choose a tag to compare
@dai-shi dai-shi released this 10 Aug 10:03
· 880 commits to main since this release

Summary

jotai

We fixed atom scope feature. useAtom now takes optional scope in the second argument and atom.scope is deprecated. As it falls back to the previous behavior, the core is not breaking. (However, other jotai/* has breaking changes in atom scope handling.)

jotai/utils

  • New experimental useHydrateAtoms hook to restore atom values in render.
  • Fixed performance related issues for waitForAll and useAtomCallback.

PRs

  • #633 fix(weakCache): Replace recursion with while loop to avoid too much recursion
  • #646 refactor(core): useMutableSource emulation without symbol and any
  • #640 breaking: useAtom scope instead of atom scope
  • #637 Feature: useHydrateAtoms
  • #644 fix(utils): improve useAtomCallback performance