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
sourceraw 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.
sourceraw docstring

registryclj/s

source

stateclj/s

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

transitionsclj/s

(transitions id db)
(transitions id db query-v)

Returns the transitions from the current state of a state machine

Returns the transitions from the current state of a state machine
sourceraw docstring

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

× close