as a time traveling debugger. This is exprimental technology.
Built as actions-in-recorder.
Demo http://repo.respo-mvc.org/reel.calcit/
"shortid" from npm is on dependency list, make sure it's installed.
Functions you need from namespaces:
reel.util :refer $ listen-devtools!
reel.core :refer $ reel-updater refresh-reel
reel.schema :as reel-schemaNotice that store now lives inside reel map.
Instead of *store, you need *reel for global states. For example:
def store $
:states $ {}
:tasks $ []
defatom *reel
-> reel-schema/reel
assoc :base store
assoc :store storeAnd we need a reel-updater besides the familiar updater we used in Respo:
defn dispatch! (op op-data)
let
new-reel $ reel-updater updater @*reel op op-data
reset! *reel new-reelMake sure you watch *reel and initialize reel.core/*code inside main! function:
add-watch *reel :changes $ fn ()
render-app! render!Call handle-reload! with so many arguments to reload store and element caches:
defn reload! ()
clear-cache!
reset! *reel $ refresh-reel @*reel schema/store updaterTo use records panel, please refer to comp-reel:
comp-reel (>> states :reel) reel stylesListening to Command Option Shift k to toggle DevTools:
listen-devtools! "k" dispatch!MIT