Skip to content

Releases: udecode/jotai-x

[email protected]

22 Dec 14:32
da92041
Compare
Choose a tag to compare

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

[email protected]

10 Dec 16:38
793cd85
Compare
Choose a tag to compare

Patch Changes