Thanks a lot Peter!

Btw, there is already code that comes from Reflex in Cloact (even if it is 
mangled quite a bit by now). Very undocumented, and probably a very poor api, 
though... See ratom.clj/.cljs. There is for example a run! macro that will 
execute its body every time a deref'ed atom is changed.

Quite another thing is if it is a good idea to do that :-) If possible, I'd say 
it is better to keep state that belongs together in a single atom.

/dan

On 11 jan 2014, at 16:58, Peter Taoussanis <ptaoussa...@gmail.com> wrote:

> Hi Dan,
> 
> This seems like a really smart approach to me. I've been playing with a 
> number of ways of structuring a large Cljs application recently - and the way 
> Cloact cooperates with atom derefs is pretty inspired. It's flexible, it's 
> fast, it's natural - and it makes transition from a non-React codebase easy 
> (trivial in my case since I already using Hiccup).
> 
> Seriously great stuff, thank you for sharing this!
> 
> 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
> 
> -- 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "ClojureScript" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojurescript/4b8ZL_4P4ZA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to