JSPM

  • Created
  • Published
  • Downloads 2881
  • Score
    100M100P100Q107861F
  • 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

atom.io

upcoming features

  • subscribe to token creation
  • subscribe to transactions
  • timelines
  • resettable atoms
  • resettable selectors
  • store observation api

fixes & improvements

  • apply and emit transactions all at once

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