Skip to content

Commit

Permalink
Clearer method of derefing a reaction to fire it
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregg8 committed Dec 2, 2016
1 parent 2ee6f25 commit 0eb4785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/re_demo/h_box.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@
[]
(fn
[]
@reset-box-state ;; For reset-box-state to fire, we must dereference it in a component
[v-box
:size "auto"
:gap "10px"
Expand Down Expand Up @@ -803,5 +804,4 @@
[gap :size "0px"]
[demo]
[gap :size "0px"]
[choose-a-demo]
(when (nil? @reset-box-state) "")]]]]]])) ;; For reset-box-state to fire, we must dereference it in a component
[choose-a-demo]]]]]]]))

0 comments on commit 0eb4785

Please sign in to comment.