Liking cljdoc? Tell your friends :D

bones.editable.request


client-atomcljs

source

client-cofxcljs

(client-cofx cofx _)
source

command-effectcljs

(command-effect {:keys [client command args tap]})

call the client

call the client
sourceraw docstring

command-handlercljs

(command-handler cofx event-vec)

dispatch :request/command to call the client

dispatch :request/command to call the client
sourceraw docstring

conform!cljs

(conform! spec args)
source

debugcljs

source

interceptorscljs

source

login-effectcljs

(login-effect {:keys [client args tap]})

call the client

call the client
sourceraw docstring

login-handlercljs

(login-handler cofx event-vec)

dispatch :request/login to call the client

dispatch :request/login to call the client
sourceraw docstring

logout-effectcljs

(logout-effect {:keys [client tap]})

call the client

call the client
sourceraw docstring

logout-handlercljs

(logout-handler cofx event-vec)

dispatch :request/logout effect to call client

dispatch :request/logout effect to call client
sourceraw docstring

long-query-handlercljs

(long-query-handler cofx event-vec)

builds args from three sources see `resolve-args'

builds args from three sources see `resolve-args'
sourceraw docstring

query-effectcljs

(query-effect {:keys [client args tap]})

call the client

call the client
sourceraw docstring

query-handlercljs

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

resolve-argscljs

(resolve-args cofx event-vec)

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])
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])
sourceraw docstring

set-clientcljs

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

short-query-handlercljs

(short-query-handler cofx event-vec)

simple query using args given in event

simple query using args given in event
sourceraw docstring

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

× close