Can you confirm that amt is a reagent ratom and not a clojure atom?
The on-change in the second example is not correct - the anonymous function is thrown away and the dispatch runs on render. You probably wanted this:
#(do (reset! amt (-> % .-target .-value))
(re-frame/dispatch [:update-value @amt]))
That is, the do is inside the function.
--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.