tbranyen/diffhtml

Support HMR

tbranyen opened this issue · 2 comments

It should be possible to make the components HMR compatible. I'd image this would be a separate module that could be mixed into any valid ES6 class.

So far my thinking is that the middleware will track the DOM Node and a hook to trigger re-rendering. The requirement would be that your hot-module-replacement-enabled modules would require diffhtml.

Not going to worry about this for the initial release. The diffhtml-static-sync module does some simple HMR which is good enough for most static cases.