no, I wish my problem was as simple as the (into) ;-).
I think you nailed it, the state being passed into my 'form' macro is changing
every second and that macro emits
'(let [on-change# (fn [x] (swap! state ~id x)))}
[:input (merge m {:on-change on-change#})])
(or something equivalent).
In other words, yes, on every state change I am regenerating the let which
constructs a new symbol for the on-change.
Thanks for the understanding. Without a big refactor, the only choice I have is
to go with the defonce hack so the macro keeps emitting the same (defonce)
constructs and thankfully defonce will not overwrite it the second time.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.