The :view proc of a component's flow: rendering.
It calls the component's render fn with the ctx the controller emitted
(:from-controller) and puts the result, as :html (hiccup or an effects
list), on the flow's out-chan (the :to-render out-port). An error
message from the controller passes through untouched.
The `:view` proc of a component's flow: rendering. It calls the component's render fn with the ctx the controller emitted (`:from-controller`) and puts the result, as `:html` (hiccup or an effects list), on the flow's out-chan (the `:to-render` out-port). An error message from the controller passes through untouched.
The proc launcher. Built once (a launcher is stateless until started) from
the step var, so a REPL redef reaches flows started afterwards.
The proc launcher. Built once (a launcher is stateless until started) from the `step` var, so a REPL redef reaches flows started afterwards.
(render component-fn-var msg)msg with :html: the render fn (a var, dereferenced now so REPL redefs
are picked up) applied to its :ctx. A render that throws becomes an
error message; an error message passes through.
`msg` with `:html`: the render fn (a var, dereferenced now so REPL redefs are picked up) applied to its `:ctx`. A render that throws becomes an error message; an error message passes through.
(step)(step {:keys [out-chan] :as args})(step state _transition)(step {:keys [component-fn-var] :as state} _in msg)Step fn of the :view proc (see clojure.core.async.flow/process).
Step fn of the `:view` proc (see `clojure.core.async.flow/process`).
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 |