Closed jiangts closed 9 years ago
I have no experience using re-frame unfortunately, so I'm really not sure what might be happening there.
I was also having the same problem and it was because I was referencing a regular atom rather than an ratom.
(defn page []
(let [doc (atom {:person {:first-name "John"
...
Should be
(defn page []
(let [doc (reagent.core/atom {:person {:first-name "John"
...
Ah yeah, that's the most likely problem, I just assume it was something re-frame specific.
Ah, of course! I missed the reagent.core :refer [atom] in the ns form. Works now, thanks
I'm using re-frame and have the following dependencies:
I tried multiple things, and eventually even just copied the code at https://github.com/reagent-project/reagent-forms/blob/master/forms-example/src-cljs/forms_example/core.cljs. Still, it doesn't work.
Do you have any tips?
Thanks