Hi, I use atoms as a data storage in my application right now and add-watch to propagate data changes to DOM.
And right now I noticed strange behavior - sometimes new-state is different from dereferenced atom (coming as a parameter to a function right now). And it's not just different, it is different in an unexpected way (such that it shouldn't have happened at all). This causes a breakage in my code. I'm not sure if it's intended to be like that or is it a bug right now. I'll try to extract a case from my code, but meanwhile if anybody thinks it shouldn't be so, can check my code/project here: http://github.com/piranha/pairword Simple "make" runs lein autocompiler and then you can open 'build/index.html', enter anything in input field and click 'Add player'. This should work but then console shows various output and at some point it says 'update NOT expected'. You can edit there to make it fail: https://github.com/piranha/pairword/blob/master/src/pairwords/templates.cljs#L59 I'm sorry for such a description, I'll still try to extract the thing in smaller amount of code, but I'm failing right now. If somebody can explain what's wrong here I'll be really grateful. -- Alexander -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.