Liking cljdoc? Tell your friends :D

reflet.interceptors


add-global-interceptorscljs

(add-global-interceptors)
(add-global-interceptors group)

Adds a global interceptor group to the beginning of the current queue. The Re-frame implementation allows for ordered dependencies between global interceptors. But the order is based on the order they are registered, which is runtime dependent. This introduces considerable imperative complexity to the interceptor chain. The Reflet implementation tries to have it both ways. With this function you can define groups of global interceptors, and order the groups statically in code within the interceptor chain. However, because the membership of the group is dynamically determined at runtime, the order within each group is left undefined. For example, you could statically declare ALL FSM interceptors should happen before ALL input validation interceptors, but have no defined order within either group. This results in a more robust architecture, while retaining some imperative control.

Adds a global interceptor group to the beginning of the current
queue. The Re-frame implementation allows for ordered dependencies
between global interceptors. But the order is based on the order
they are registered, which is runtime dependent. This introduces
considerable imperative complexity to the interceptor chain. The
Reflet implementation tries to have it both ways. With this function
you can define groups of global interceptors, and order the groups
statically in code within the interceptor chain. However, because
the membership of the group is dynamically determined at runtime,
the order within each group is left undefined. For example, you
could statically declare ALL FSM interceptors should happen before
ALL input validation interceptors, but have no defined order within
either group. This results in a more robust architecture, while
retaining some imperative control.
sourceraw docstring

clear-global-interceptorcljs

(clear-global-interceptor id)
(clear-global-interceptor group id)
source

cycle-idcljs

(cycle-id id)
source

dbcljs

source

get-global-interceptorcljs

(get-global-interceptor id)
(get-global-interceptor group id)
source

global-interceptor-registered?cljs

(global-interceptor-registered? id)
(global-interceptor-registered? group id)
source

reg-eventcljs

(reg-event id impl-itors handler)
(reg-event id impl-itors user-itors handler)

Registers a pre-wrapped interceptor handler.

Registers a pre-wrapped interceptor handler.
sourceraw docstring

reg-event-ctx-implcljs

(reg-event-ctx-impl id impl-itors handler)
(reg-event-ctx-impl id impl-itors user-itors handler)
source

reg-event-db-implcljs

(reg-event-db-impl id impl-itors handler)
(reg-event-db-impl id impl-itors user-itors handler)
source

reg-event-fx-implcljs

(reg-event-fx-impl id impl-itors handler)
(reg-event-fx-impl id impl-itors user-itors handler)
source

reg-global-interceptorcljs

(reg-global-interceptor id interceptor)
(reg-global-interceptor group id interceptor)
source

same-cycle?cljs

(same-cycle? id)

Cycle ids can be used to ensure that interceptor operations from different runtime lifecycles do not clobber each other. For example, you can use this function to check if the lifecycle handler from BEFORE a hot reload is attempting to clear an interceptor that was registered AFTER the hot reload.

Cycle ids can be used to ensure that interceptor operations from
different runtime lifecycles do not clobber each other. For example,
you can use this function to check if the lifecycle handler from
BEFORE a hot reload is attempting to clear an interceptor that was
registered AFTER the hot reload.
sourceraw docstring

with-cycle-idcljs

(with-cycle-id id)
source

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

× close