(->interceptor {_id :id _before :before _after :after})TODO impl
TODO impl
(add-init-coeffects event init-coeffects)add some initial coeffects to an event
add some initial coeffects to an event
(clear-global-interceptors router)(clear-global-interceptors router id)clear all or one global interceptors
clear all or one global interceptors
(create-router app)(create-router app opts)create an a-frame router
create an a-frame router
(create-router-dispose-fn app)(create-router-dispose-fn app opts)factory function for an a-frame router and a fn to dispose the router
returns [router dispose-fn]
factory function for an a-frame router and a fn to dispose the router returns [router dispose-fn]
(dispatch router event)(dispatch router init-coeffects event)dispatch a single event
dispatch a single event
(dispatch-n router events)(dispatch-n router init-coeffects events)dispatch a vector of events
dispatch a vector of events
(dispatch-n-sync router events)(dispatch-n-sync router init-coeffects events)dispatch-sync a vector of events
dispatch-sync a vector of events
(dispatch-sync router event)(dispatch-sync router init-coeffects event)dispatch a single event and await the completion of its processing (all cofx, event and fx will complete before the result promise returns)
dispatch a single event and await the completion of its processing (all cofx, event and fx will complete before the result promise returns)
(get-coeffect _context)(get-coeffect _context _key)(get-coeffect _context _key _not-found)TODO impl
TODO impl
(get-effect _context)(get-effect _context _key)(get-effect _context _key _not-found)TODO impl
TODO impl
(reg-cofx id handler)register a cofx handler (<handler> app) -> Promise<> (<handler> app arg) -> Promise<>
register a cofx handler (<handler> app) -> Promise<*> (<handler> app arg) -> Promise<*>
(reg-event-ctx id handler)(reg-event-ctx id interceptors handler)register an event-handler expected to return a (promise of an) updated event-context
(<handler> context) -> Promise<context>
fx from the returned context will be processed as described in reg-event-fx
register an event-handler expected to return a (promise of an) updated event-context (<handler> context) -> Promise<context> fx from the returned context will be processed as described in reg-event-fx
(reg-event-fx id handler)(reg-event-fx id interceptors handler)register an event-handler expected to return a (promise of a) seq of fx
(<handler> cofx event) -> Promise<[{<fx-id> <fx-args>}]>
the seq of fx will be processed sequentially - maps with multiple fx entries may be processed concurrently
note that processing of the partition's queue will be suspended until the handler returns
register an event-handler expected to return a (promise of a) seq of fx
(<handler> cofx event) -> Promise<[{<fx-id> <fx-args>}]>
the seq of fx will be processed sequentially - maps with multiple fx
entries may be processed concurrently
note that processing of the partition's queue will be suspended until the
handler returns(reg-fx id handler)register an fx handler (<handler> app arg) -> Promise<*>
register an fx handler (<handler> app arg) -> Promise<*>
(reg-global-interceptor router interceptor)register a global interceptor for the router instance - all events dispatched to this router will have global interceptors prepended to the interceptor chain declared with the handler
register a global interceptor for the router instance - all events dispatched to this router will have global interceptors prepended to the interceptor chain declared with the handler
(repl-dispatch-sync->coeffects router event)(repl-dispatch-sync->coeffects n router event)return the coeffects for an event
processes all the :enter interceptor fns of the event's chain, but skips the event-handler and any :leave or :error fns
n - the number of handlers to drop from he end of the interceptor chain. default 1
return the coeffects for an event
processes all the :enter interceptor fns of the event's chain,
but skips the event-handler and any :leave or :error fns
n - the number of handlers to drop from he end of
the interceptor chain. default 1cljdoc 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 |