mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 23:38:11 +00:00
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:
parent
53ae7090f6
commit
8ec5405106
@ -212,7 +212,7 @@ and then:
|
|||||||
```clj
|
```clj
|
||||||
(defn my-reg-event-fx ;; alternative to reg-event-db
|
(defn my-reg-event-fx ;; alternative to reg-event-db
|
||||||
([id handler-fn]
|
([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]
|
([id interceptors handler-fn]
|
||||||
(re-frame.core/reg-event-fx
|
(re-frame.core/reg-event-fx
|
||||||
id
|
id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user