(all-transitions state-machine)
Returns all the unique transitions (events) that a state machine handles
Returns all the unique transitions (events) that a state machine handles
(install-state-machine! state-machine)
Installs a locket state machine. This function is side-effecting and alters the re-frame registry. It should be called after the definitions of the related event handlers.
Installs a locket state machine. This function is side-effecting and alters the re-frame registry. It should be called after the definitions of the related event handlers.
(reset-state db id query-v)
Returns a db with the state machine reset to its initial state
Returns a db with the state machine reset to its initial state
(state db id)
(state db id query-v)
Returns the current state of a state machine, given the id, a re-frame db and an optional query-v
Returns the current state of a state machine, given the id, a re-frame db and an optional query-v
(transition->str transition)
Takes fired transition data and turns it into a neat string representation
Takes fired transition data and turns it into a neat string representation
(transitions db id)
(transitions db id query-v)
Returns the transitions from the current state of a state machine
Returns the transitions from the current state of a state machine
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close