3 ms·
Does it refresh all functions? Including the anonymous ones in already attached event handlers? I have done something similar recently but it requires any live
by DiThi 12y ago
Does it refresh all functions? Including the anonymous ones in already attached event handlers?
I have done something similar recently but it requires any live-reload-able function to have a name.
- caspervonb 12y agoYep, everything including anonymous functions.
- kylebrown 12y agoI see the FAQ says no callbacks. So as long as there aren't any callbacks, running app state should be preserved through code updates? The video demos a React component, great. I hope amok will work with my current workflow, using jspm (rather than webpack or something).
- caspervonb 12y agoIt's the opposite, if the application has no callbacks, how can anything be live edited when none of your code is hooked up to anything.
- DiThi 12y agoOld callbacks can call to newer versions of modified functions. The live-reloading code I made needed named functions for this reason.