On Thu, Apr 3, 2014 at 7:48 AM, Dave Della Costa <[email protected]>wrote:

> Of course what happens whenever an update occurs from the outside is
> that any cursors that were passed into components that are affected by
> those updates get wiped out and replaced by basic Clojure data
> structures.  Om components don't complain--of course, a lot of what
> cursors are are wrappers around the base functionality in Clojure data
> structures.  But there are problems whenever there are state updates in
> those components affected.
>

I don't really understand how cursors can get wiped out. Without knowing
more details it initially sounds like you are going against the flow with
respect to how Om is intended to be used.


> Additionally, there are cases where we do a lot of data manipulation to
> get cursor data into the right format for a child component--it's
> neither possible nor desirable for us to format our data before loading
> it into root.  But again this wipes out cursors in child components and
> calls to set-state! and etc. will throw errors.
>

Again not enough details to understand why you need to do so much
transformation.

I cannot really comment further because I don't know what you are doing or
why you doing it the way you are doing it. A simple illustrative example of
your approach and a description of the perceived advantages of that
approach would clear things up.

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].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to