Might just be a bug. Feel free to submit an issue with a minimal case. There's an existing issue that may be related. Please verify this issue is independent. Thanks.
On Saturday, November 1, 2014, Paul Cowan <[email protected]> wrote: > I am trying to add new items to a cursor. Here is the code > https://gist.github.com/dagda1/fc36f3bb1fcfd559f3ac#file-cursor-cljs-L49 > with the line added. > > I am using om 0.8.0-alpha and I am trying to create a reference cursor, I > created like this; > > (def app-state (atom {:clips []})) > > (defn clips [] > (om/ref-cursor (:clips (om/root-cursor app-state)))) > > And here is the code that is trying to add a new item to the clips cursor: > > (om/transact! xs #(vec (conj % clip))) > > I get this error whenever the above line is executed: > > Uncaught Error: No protocol method ITransact.-transact! defined for type > cliplater.core/t11362: [object Object] > > Can anyone explain why this is erroring? > > -- > 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] <javascript:;>. > To post to this group, send email to [email protected] > <javascript:;>. > 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.
