Fix my-reg-event-fx

The code caused interceptors to be added twice, leading e.g. to duplicate log messages. This patch fixes the docs.
This commit is contained in:
Paulus Esterhazy 2017-07-19 19:18:58 +02:00 committed by GitHub
parent 53ae7090f6
commit 8ec5405106

View File

@ -212,7 +212,7 @@ and then:
```clj
(defn my-reg-event-fx ;; alternative to reg-event-db
([id handler-fn]
(my-reg-event-fx id standard-interceptors-fx handler-fn))
(re-frame.core/reg-event-fx id standard-interceptors-fx handler-fn))
([id interceptors handler-fn]
(re-frame.core/reg-event-fx
id