I see...I think this wasn't clear to me in our earlier back-and-forth in this thread. If it is best practice to create a utility/invisible component which receives input from the server--something analogous to om-sync, but the reverse I guess--then I'd rather go with that.
I guess the advantages in general for doing all your data manipulation inside of Om are that updates can be picked up and used for rendering optimizations, per your earlier comment, correct? (2014/04/04 6:25), David Nolen wrote: > On Thu, Apr 3, 2014 at 5:22 PM, Sean Corfield <[email protected] > <mailto:[email protected]>> wrote: > > In the case of application state being modified "externally", would > you recommend having an invisible Om component listen for those > changes and apply them through transact! itself? Or is the approach > of just swapping in a delta considered fully supported and > "recommended"? > > (given the discussions I've been having with you on IRC and from my > only playing with Om, I'd lean toward the former, but the latter is > certainly "simpler") > > Sean > > > "Invisible" components in Om are fully supported. This is precisely the > idea behind om-sync, a reusable synchronization controller component > which has no visual representation. > > I recommend the former approach. Using swap! is not something I > recommend at all. > > David > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[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.
