News for hackers. Stuff that matters.
Re:Cloact: Minimalistic React for ClojureScript by danh on Friday January 10, 2014 @12:01PM (#7037688)
Thanks, again :)

Yes, exactly, Cloact tries to stay really close to plain React. But since it allows you to separate data from rendering, undo should be quite trivial to implement (if you keep all your application data in a single cloact/atom)...

Re:Cloact: Minimalistic React for ClojureScript by swannodette on Friday January 10, 2014 @12:15PM (#7037809)
Yep sounds right to me. The other reason I did Om the way I did was to keep the door open for more React optimizations that Om can drive which are more work if you remain close to the React model - particularly only reconciling the specific children that changed in a list instead of iterating over them like React does.
Re:Cloact: Minimalistic React for ClojureScript by Touche on Friday January 10, 2014 @12:42PM (#7038027)
One thing I can't figure out is why they need to be cloact/atoms and not just regular atoms. Is it because cloact/atoms are observable?
Re:Cloact: Minimalistic React for ClojureScript by danh on Friday January 10, 2014 @01:16PM (#7038273)
In a way. Using regular atoms you can only get a callback when they are modified, but not when they are deref'ed.

You could still use regular atoms, though, with some extend-type magic. But then you risk messing with non-Cloact code in horrible ways...