Liking cljdoc? Tell your friends :D

reacl-basics.actions.core

Utilites to defines actions and utilities to specialize and execute them.

Utilites to defines actions and utilities to specialize and execute
them.
raw docstring

actioncljs

(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 ...))`
sourceraw docstring

action-handlercljs

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

action?cljs

(action? v)

Return true if v is an action created by action.

Return true if `v` is an action created by [[action]].
sourceraw docstring

async-messagescljs

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

compcljs

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

externalcljs

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

guardcljs

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

IActionablecljsprotocol

execute!cljs

(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.
source

messagecljs

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

nothingcljs

An action that does nothing.

An action that does nothing.
sourceraw docstring

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

× close