We've been exploring lots of different options for this as well. Not quite
ready to share it yet, but there's no out-of-the-box solution to do this
efficiently yet it seems.


On Wed, Jul 23, 2014 at 10:47 AM, Anton Astashov <[email protected]>
wrote:

> Hello,
>
> Is there any good way to send large immutable data with a lot of
> structural sharing (like, app state with undo/redo stack) to the server,
> and also get it from the server and correctly rebuild it in browser's
> memory?
>
> If I just do (clj->js my-data), I will get a JSON, but it will lose the
> information about shared data.
>
> So, what would be the best way to handle that? It seems like I need some
> way to know what pieces are reused, serialize the data, store reused pieces
> as references, and then also being able to deserialize it having that
> knowledge.
>
> How do you usually accomplish that?
>
> Thanks!
>
> --
> 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.
>

-- 
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