Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Dec 14:32
· 26 commits to main since this release
da92041

Minor Changes

  • #2 by @12joan
    • Atoms other than atom can now be passed in the initialState argument to createAtomStore. Primitive values use atom by default
    • Added an extend option to createAtomStore that lets you add derived atoms to the store
    • New accessors on UseStoreApi
      • useMyStore().store() returns the JotaiStore for the current context, or undefined if no store exists
      • useMyStore().{get,set,use}.atom(someAtom) accesses someAtom through the store
    • Types: remove exports for some internal types
      • GetRecord
      • SetRecord
      • UseRecord