Skip to content

Commit b3eda5b

Browse files
committed
[example] [flow] Add comment
1 parent 584db84 commit b3eda5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/flow/src/re_frame/flow/demo.cljs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@
6464

6565
(rfa/reg-flow error-state-flow)
6666

67-
(rf/reg-event-fx
67+
;; Note: this uses the version of `reg-event-fx` from `re-frame.alpha`, not core.
68+
;; This is necesssary for the `:clear-flow` and `:reg-flow` effects to work.
69+
(rfa/reg-event-fx
6870
::clear-flow-button-pressed
6971
(fn [_ _] {:fx [[:clear-flow ::error-state]]}))
7072

71-
(rf/reg-event-fx
73+
(rfa/reg-event-fx
7274
::reg-flow-button-pressed
7375
(fn [_ _] {:fx [[:reg-flow error-state-flow]]}))
7476

0 commit comments

Comments
 (0)