Malli schemas for state machine data structures. Available on both JVM and ClojureScript via reader conditionals — Malli requires :clj for fn? predicates, so those are guarded.
Malli schemas for state machine data structures. Available on both JVM and ClojureScript via reader conditionals — Malli requires :clj for fn? predicates, so those are guarded.
The context map that flows through state machine transitions — both as input (from-state) and output (transition result). Always contains a state value (keyword or vector of keywords) under a configurable key — :_state by default, :state when used by the datastar pipeline. Also carries :memory and any domain-specific keys added by actions. The :invoke key is always stripped from transition output. Open map — components freely extend the context with domain keys.
The context map that flows through state machine transitions — both as input (from-state) and output (transition result). Always contains a state value (keyword or vector of keywords) under a configurable key — :_state by default, :state when used by the datastar pipeline. Also carries :memory and any domain-specific keys added by actions. The :invoke key is always stripped from transition output. Open map — components freely extend the context with domain keys.
An event is a tuple of [keyword params-map].
An event is a tuple of [keyword params-map].
Top-level machine shape. Intentionally open — machines contain deeply nested :states/:on/:invoke structures with function values that are impractical to fully schema.
Top-level machine shape. Intentionally open — machines contain deeply nested :states/:on/:invoke structures with function values that are impractical to fully schema.
State can be a keyword (flat) or a vector of keywords (hierarchical).
State can be a keyword (flat) or a vector of keywords (hierarchical).
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 |