Malli schema for the context map flowing through transitions (state + :memory).
Malli schema for the context map flowing through transitions (state + :memory).
Malli schema for a transition event tuple [event-keyword params-map].
Malli schema for a transition event tuple [event-keyword params-map].
Malli schema for a machine definition map (:id, :initial, :states, :on).
Malli schema for a machine definition map (:id, :initial, :states, :on).
Replaces named fn values in a machine with their vars so with-redefs can intercept them in tests.
Replaces named fn values in a machine with their vars so with-redefs can intercept them in tests.
(transition machine from-state [event-name event-params])(transition machine from-state [event-name event-params] opts)Runs a state machine transition. Returns the updated context map containing the new state (under a configurable key, :_state by default) and :memory. The :invoke key is always stripped from the result. May throw if the machine has no matching transition for the event.
Runs a state machine transition. Returns the updated context map containing the new state (under a configurable key, :_state by default) and :memory. The :invoke key is always stripped from the result. May throw if the machine has no matching transition for the event.
Malli schema for transition options (:state-key, :trace-fn, :action-trace-fn).
Malli schema for transition options (:state-key, :trace-fn, :action-trace-fn).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |