Arrow of time
Experiment with minimum possible composable implementation of a history (such as a Redux store, Act history, etc).
To try it out, clone the repo and npm install
. Then npm start
and head to http://localhost:3000/demo/timeline.html
and http://localhost:3000/demo/snapshot.html
.
Install
npm install --save-dev arrow-of-time
Snapshot
const snapshot = const subscribedSnapshot = snapshot const snapshots = snapshotssnapshotssnapshots
Timeline
const timeline = const subscribedTimeline = timeline const timelines = timelinestimelinestimelines timelinestimelinestimelines
Store
const store = storetimeline store)storestore storestorestore
Known issues
redoable
andrewindable
need to be the outermost higher order snapshots to be applied, because the way they work they will not play well in spreading the properties set by other higher order snapshots.