Utilites to defines actions and utilities to specialize and execute them.
Utilites to defines actions and utilities to specialize and execute them.
(action f & args)
Returns an action that contains the function to execute it as by (f state & args) => (reacl/return ...))
Returns an action that contains the function to execute it as by `(f state & args) => (reacl/return ...))`
(action-handler content)
Wrapper around an element, that handles all [[actions?]] and lets any other actions through. Use this near the top level in your application to support the exection of the actions in this library.
Wrapper around an element, that handles all [[actions?]] and lets any other actions through. Use this near the top level in your application to support the exection of the actions in this library.
(action? v)
Return true if v
is an action created by action
.
Return true if `v` is an action created by [[action]].
(async-messages target f & args)
Creates an action that sends messages to the component
target
. One message may be directly returned by f
, which is
delivered to target
immediately, unless it's nil. More can be sent
later with an send!
function that is passed as the first
argument to f
.
Creates an action that sends messages to the component `target`. One message may be directly returned by `f`, which is delivered to `target` immediately, unless it's nil. More can be sent later with an `send!` function that is passed as the first argument to `f`.
(comp & actions)
Returns the sequential composition of executing all the given actions from left to right
Returns the sequential composition of executing all the given actions from left to right
(external f & args)
Creates an action that is executed solely by the side effects of
applying f
to args
, i.e. is has an external effect that does not
depend or modify an application state.
Creates an action that is executed solely by the side effects of applying `f` to `args`, i.e. is has an external effect that does not depend or modify an application state.
(guard f & args)
Returns an action that, when executed, calls (f & args)
which
must return another action which is then executed immediately
instead.
Returns an action that, when executed, calls `(f & args)` which must return another action which is then executed immediately instead.
(execute! this state)
Execute the effect of the action and must return a 'reacl/return' value.
Execute the effect of the action and must return a 'reacl/return' value.
(message target message)
Creates an action that sends the given message to the component
target
.
Creates an action that sends the given message to the component `target`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close