Event tree tracking interceptor for re-frame
Add the necessary dependency to your project:
[team.sultanov/event-tree-tracker "0.1.1"]
team.sultanov/event-tree-tracker {:mvn/version "0.1.1"}
(ns example
(:require [re-frame.core :as rf]
[event-tree-tracker.core :refer [tracker]]))
(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]
;; ...
))
Copyright © 2018 Sultanov Team
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close