On Thursday, March 20, 2014 10:58:08 PM UTC+2, David Nolen wrote: > > > If you don't pass app state data to this component then you don't need to > bother with build at all. If you need a component that doesn't need app > state but does need component local state you need to use om.core/graft. > Refer to the documentation on om.core/graft and look at the examples in the > repo. > > Channels could work. However :shared was also designed with this scenario > in mind, you could use an atom with the message in it and placed it in > :shared if the message is not an important piece of state for the rest of > your application. There are also examples of :shared in the repo as well. > > HTH, > David >
Thank you for your reply. I've used graft and it works fine with channels. I will also try :shared, but I guess I will have to call refresh! after I swap the shared atom? -- 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/d/optout.