Re:React Hot Loader: Tweak React Components in Real Time
by coding4all on Monday February 02, 2015 @07:11AM
(#8983790)
What? When's the last time you've used Chestnut? Do you have an example I could look at? I ask because it sounds like you're doing something that re-renders the entire application instead of the components that need to update.
Re:React Hot Loader: Tweak React Components in Real Time
by danabramov on Monday February 02, 2015 @08:16AM
(#8983982)
I may be wrong but I don't think Chestnut will patch existing instances? And without patching, I imagine React will recognize new version as a different type and bail out of reconciliation. I didn't try it, just chatted with David on Twitter and that's what I thought. Maybe I got it wrong!
Anyway, I'm looking forward to learning more about ClojureScript. A lot of exciting things coming from there.
Also, as far as I'm aware, ClojureScript hot reloading tools actually unmount the component. This may be OK because state is restored from one source, but it's not as nice-looking because DOM is thrown away on every update, and it flickers.