Hey Jack,
here are 2 specific examples taken from my codebase. One inside a render, one inside a will-mount: https://www.refheap.com/fec9b8d2d50ce755214817b21 In both cases, if I use update! instead of transact!, it fails. The update! line would be something like (om/update! app [:data] data) In both cases, transact! is inside a go black. Can this be related to the issue? The ajax functions return simple clojure maps. Using static values or bools results in the same issue. I also updated to the latest om to see if this is related, but the issue still persists. On Friday, Nov 28, 2014 at 11:37 PM, jack james <[email protected]>, wrote: i can't reproduce this. can you post a minimal case showing an example where transact! succeeds and update! fails? https://www.refheap.com/94143 On Friday, November 28, 2014 3:28:25 AM UTC-6, David Mohl wrote: > Hey there. I am constantly running into a small issue with om/update! and > om/transact! and look for a point into the right direction. > > This snippet sets the `some-value` state to true. > > (om/transact! app [:some-value] (fn [_] true)) > > The way I understood it from the documentation > (https://github.com/swannodette/om/wiki/Documentation#update), I should be > able to accomplish the same thing by using the following update statement: > > (om/update! app [:some-value] true) > > While the `transact!` one works fine, `update!` is always throwing `Uncaught > TypeError: Cannot read property 'closure_uid_xxxxxxx' of null` > > I am wondering what I'm doing wrong or where my thinking error is. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/IsFBzjXDNhw/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript. -- 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 http://groups.google.com/group/clojurescript.
