JSPM

  • Created
  • Published
  • Downloads 4272
  • Score
    100M100P100Q106554F
  • License MIT

Reactive state graph for React, Preact, and vanilla

Package Exports

  • atom.io
  • atom.io/package.json
  • atom.io/react
  • atom.io/react/package.json

Readme

features

  • atoms and selectors
  • implicit store
  • readonly selectors
  • settable selectors
  • "tokens" safely expose atoms and selectors
  • give atoms and selectors separate types with a common base
  • utility function to pass logger to your store
  • selector memoization
  • atom and selector families
  • atom effects
  • transactions
  • async effects
  • atom default as function
  • check whether an atom is "default" (never set)
  • customizable logging
  • subscribe to transactions
  • timelines
  • subscribe to families

atom.io

upcoming features

  • subscribe to creation of all tokens
  • resettable atoms
  • resettable selectors
  • store observation api

documentation

  • document atom and selector families
  • document atom and selector
  • document transactions

/react

features

  • useSubject
  • useStore

/effects

features

  • localStorage and sessionStorage effects
  • socket.io server effect
  • socket.io client effect