Liking cljdoc? Tell your friends :D

Welcome

Event tree tracking interceptor for re-frame

Latest version CircleCI

Clojars Project

Getting Started

Add the necessary dependency to your project:

Leiningen/Boot
[team.sultanov/event-tree-tracker "0.1.1"]
deps.edn
team.sultanov/event-tree-tracker {:mvn/version "0.1.1"}
Usage
(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]
    ;; ...
    ))
  

License

Copyright © 2018 Sultanov Team

MIT License

Can you improve this documentation?Edit on GitHub

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

× close