News for hackers. Stuff that matters.
Re:React Hot Loader: Tweak React Components in Real Time by coding4all on Monday February 02, 2015 @01:14AM (#8982940)
David Nolen had this going for the ClojureScript community about 3 months ago https://www.youtube.com/watch?v=gI3fJKmvgq4
Re:React Hot Loader: Tweak React Components in Real Time by sbensu on Monday February 02, 2015 @03:42AM (#8983262)
Don't forget Figwheel, it has been around since April 2014

https://www.youtube.com/watch?v=KZjFVdU8VLI https://github.com/bhauman/lein-figwheel

Re:React Hot Loader: Tweak React Components in Real Time by coding4all on Monday February 02, 2015 @04:37AM (#8983415)
I'm just talking about when the video was made/uploaded.
Re:React Hot Loader: Tweak React Components in Real Time by danabramov on Monday February 02, 2015 @05:24AM (#8983531)
Indeed, this is simpler in ClojureScript world where all state is kept in a single place. It's harder to do the same for JavaScript React components that may have local state, but as you see, it's perfectly possible.

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.

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.

Re:React Hot Loader: Tweak React Components in Real Time by coderzach on Monday February 02, 2015 @03:05AM (#8983180)
This has been around much longer than 3 months.