Liking cljdoc? Tell your friends :D
ClojureScript only.

event-tree-tracker.core


trackercljs

Returns an interceptor which track context, coeffects and effects and then wraps their by the vector of wrappers. Your event handlers will look like this:

(rf/reg-event-fx :event-with-default-wrappers [(tracker)] (fn [cofx event-v] ...))

(rf/reg-event-fx :event-with-all-wrappers [(tracker [all-wrapper-fn-1 all-wrapper-fn-2])] (fn [cofx event-v] ...))

(rf/reg-event-fx :event-with-before-wrappers [(tracker :before [before-wrapper-fn-1 before-wrapper-fn-2])] (fn [cofx event-v] ...))

(rf/reg-event-fx :event-with-after-wrappers [(tracker :after [after-wrapper-fn-1 after-wrapper-2])] (fn [cofx event-v] ...))

Returns an interceptor which track context, coeffects and effects and then
wraps their by the vector of wrappers. Your event handlers will look like this:

(rf/reg-event-fx
  :event-with-default-wrappers
  [(tracker)]
  (fn [cofx event-v]
    ...))

(rf/reg-event-fx
  :event-with-all-wrappers
  [(tracker [all-wrapper-fn-1 all-wrapper-fn-2])]
  (fn [cofx event-v]
    ...))

(rf/reg-event-fx
  :event-with-before-wrappers
  [(tracker :before [before-wrapper-fn-1 before-wrapper-fn-2])]
  (fn [cofx event-v]
    ...))

(rf/reg-event-fx
  :event-with-after-wrappers
  [(tracker :after [after-wrapper-fn-1 after-wrapper-2])]
  (fn [cofx event-v]
    ...))
sourceraw docstring

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

× close