(command-effect {:keys [client command args tap]})call the client
call the client
(command-handler cofx event-vec)dispatch :request/command to call the client
dispatch :request/command to call the client
(login-effect {:keys [client args tap]})call the client
call the client
(login-handler cofx event-vec)dispatch :request/login to call the client
dispatch :request/login to call the client
(logout-effect {:keys [client tap]})call the client
call the client
(logout-handler cofx event-vec)dispatch :request/logout effect to call client
dispatch :request/logout effect to call client
(long-query-handler cofx event-vec)builds args from three sources see `resolve-args'
builds args from three sources see `resolve-args'
(query-effect {:keys [client args tap]})call the client
call the client
(query-handler cofx event-vec)dispatch :request/query effect to call call args may be resolved from `resolve-args' or sent as an event arg. a map as event arg will short-circuit some logic for a simpler interface
dispatch :request/query effect to call call args may be resolved from `resolve-args' or sent as an event arg. a map as event arg will short-circuit some logic for a simpler interface
(resolve-args cofx event-vec)merge data from three sources:
merge data from three sources:
- data sent in the options of the event
- data from the inputs of the thing
- data form the defaults of the thing
conditionally, merging can be prevented with the :solo option
In the case below, the resolved args would be only `{:x true}'
(dispatch [X E-TYPE ID {:args {:x true}}])
or
(dispatch [X command args])
In this next case, all data will come from the inputs in the db
(dispatch [X E-TYPE ID])(set-client client)sets the :client co-effect as a convenience. the client will have functions called on it from bones.editable.protocols/Client. alternatively, the :client co-effect can be registered with: (reg-cofx :client #(assoc % :client my-client))
sets the :client co-effect as a convenience. the client will have functions called on it from bones.editable.protocols/Client. alternatively, the :client co-effect can be registered with: (reg-cofx :client #(assoc % :client my-client))
(short-query-handler cofx event-vec)simple query using args given in event
simple query using args given in event
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 |