You can do this with both cursor data and state. With the cursor you can use transact! (https://github.com/swannodette/om/wiki/Documentation#transact) like so:
(transact! data #(assoc % :foo "foo" :bar "bar")) ; etc. With state you can use update-state! (https://github.com/swannodette/om/wiki/Documentation#update-state) the exact same way: (update-state! owner #(assoc % :foo "foo" :bar "bar")) DD (2014/05/06 16:56), Roger Gilliar wrote: > The problem was that I did one update to the component state and one > update to the app-state and both triggered the rendering of the > component. Since I did the changes in the wrong order services was > null on the first render call. > > It would be nice if multiple changes to the state could be combined > in a transaction so that the rendering happens after the transaction > commits. Is this possible ? > -- 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.
