(dispatch! event & args)Invoke an event on particular controller asynchronously
(citrus/dispatch! :user/load "id")
Arguments
event - a dispatch value of a method defined in the controller args - arguments to be passed into the controller
Invoke an event on particular controller asynchronously (citrus/dispatch! :user/load "id") Arguments event - a dispatch value of a method defined in the controller args - arguments to be passed into the controller
(dispatch-sync! event & args)Invoke an event on particular controller synchronously
(citrus/dispatch-sync! :users/load "id")
Arguments
event - a dispatch value of a method defined in the controller args - arguments to be passed into the controller
Invoke an event on particular controller synchronously (citrus/dispatch-sync! :users/load "id") Arguments event - a dispatch value of a method defined in the controller args - arguments to be passed into the controller
(subscription path)(subscription path reducer)Create a subscription to state updates
(citrus/subscription [:users 0] (juxt [:fname :lname]))
Arguments
path - a vector which describes a path into reconciler's atom value reducer - an aggregate function which computes a materialized view of data behind the path
Create a subscription to state updates (citrus/subscription [:users 0] (juxt [:fname :lname])) Arguments path - a vector which describes a path into reconciler's atom value reducer - an aggregate function which computes a materialized view of data behind the path
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 |