Closed peteruithoven closed 8 years ago
@peteruithoven sorry for a delay. So this would make redux work with system-js-hot-reloader?
Actually the approach I suggested in https://github.com/capaj/systemjs-hot-reloader/issues/34#issuecomment-174723848 is much simpler and doesn't require changing the hot reloader, so I think that's the preffered way. I'll close this for now.
Alternative fix for https://github.com/capaj/systemjs-hot-reloader/issues/34. It temporarily creates a module that contains the previous instance of the module that's being re-imported. This is currently only the root module.
Because I needed a placeholder I've create a prevInstance.js file in the package. I would really love a better solution. Another hack is that the hot-reloader.js contains the name of the package;
I would prefer to do something like:
Curious what you guys think of this solution. Ideas are welcome.