The way I understand React, (which is to say, very little), it actually should be perfectly fine to receive your state from the server, and simply let it override or merge into your current local state, because Om/React should only re-render to the DOM when there's an actual difference. (Meaning you don't have to manage "events" coming from the server and filter out your own changes).
So you could implement this, not as a client receiving events, but actually just as a client receiving the entire app-state (depending on how big that actually is). You could even have multiple root nodes based on different cursors subscribed to different server-side state, and compose your application that way, I imagine. On Saturday, January 25, 2014 3:52:44 PM UTC-8, Joel wrote: > With Om it seems I could keep one "cloud" of state, before applying a change > I could make a sort of pub/sub or command pattern to update server and its > clients. I would need to make I ignore events I send, as I'd apply them to my > local state first. > > I'm curious how clojurescript can communicate with server, can I send code to > evaluate on the server, which would need to be sanitized of course, but that > doesn't sound difficult as clojure code is simple to traverse. > > I was excited reading about Korma as well, it sounds like another great way > to request data from the server and simply cleanse the request that's passed > in. Has anyone done this? > > > > On Saturday, January 25, 2014 5:34:08 PM UTC-6, David Nolen wrote: > > Sending changes, there's no clean hook to do this as of yet. But I think > > being able to log all state transitions might be useful so we'll see. -- 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 clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.