On Sat, Jan 11, 2014 at 10:58 AM, Peter Taoussanis <[email protected]>wrote:
> BTW for those looking for single-state snapshots (for undos, tooling, > debugging, etc.) - all you'd need to do is merge any individual atom > snapshots that constitute your full application state. It should be easy to > extend Cloact (or something like Reflex https://github.com/lynaghk/reflex) > to do the state tracking automatically. > > Cheers! :-) > > - Peter Taoussanis > Not to detract from the Cloact approach but the problem here is having to do the merge by hand and thus that logic for snapshotting and reinstating will need to be replicated from application to application. It could be abstracted away, but this is the type of additional complexity that I am interested in avoiding. The other option in Cloact is to use a single atom approach, but then you have mixed universe of snapshottable components and ones which aren't. Also a model that emphasizes local state like this, which React suffers from as well, can not leverage as many rendering optimizations in the future as Om. So as usual ... tradeoffs :) 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.
