Liking cljdoc? Tell your friends :D

locket.core


all-transitionsclj/s

(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
raw docstring

install-state-machine!clj/s

(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.
raw docstring

registryclj/s


reset-stateclj/s

(reset-state db id)
(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
raw docstring

stateclj/s

(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
raw docstring

transition->strclj/s

(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
raw docstring

transitionsclj/s

(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
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close