anurag-roy / store

A simple type-safe reactive store

Home Page:https://www.npmjs.com/package/@anuragroy/store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adapted from @xstate/store, MIT License, Copyright (c) 2015 David Khourshid

  • Added a second argument event to subscribe, which is the send event that triggered this state change.
  • Removed React-specific code (useSelector), XState-specific code (fromStore) and createStoreWithProducer.

Read the original docs here.

About

A simple type-safe reactive store

https://www.npmjs.com/package/@anuragroy/store

License:MIT License


Languages

Language:TypeScript 100.0%