JSPM

  • Created
  • Published
  • Downloads 2881
  • Score
    100M100P100Q107888F
  • License MIT

like recoil for node

Package Exports

  • atom.io
  • atom.io/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (atom.io) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

features

  • atoms and selectors
  • implicit store
  • readonly selectors
  • settable selectors
  • safe recursive update propagation
  • "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

atom.io

upcoming features

  • "lazy mode": only propagate updates downstream to selectors with an active subscription
  • async effects
  • atom default as function
  • check whether an atom is "default" (never set)
  • timelines
  • resettable atoms
  • resettable selectors
  • subscribe to transactions
  • subscribe to token creation
  • logging levels (debug, info, warn, error)
  • store observation api

fixes & improvements

  • refactor selector dependencies to be asymmetrical
  • tokens explicitly contain the key of their family
  • 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