New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call __reload hook with deletedModule #23
Call __reload hook with deletedModule #23
Conversation
Allowing one to restore state on hot reload
This looks good to me! |
ok, looking good here. Will write a unit test for this later. |
Call __reload hook with deletedModule
Usage example when using Redux; rehydrating store on reload: |
nice! Thanks for the gist!! |
@peteruithoven: the gist isn't working for me ... but also haven't figured out how to get anything to reload (regardless of state). I get console messages that file emitted change, but it doesn't cause anything to reload. |
@johnjelinek Sounds like a separate issue? Please mention in that new issue where you get console messages. In the |
I want getting I started a new project and it's working, I'm going to import all my modules from the old one and do a diff to see what's different between the projects. |
wasn't*, not want |
@johnjelinek double check that you're importing the hot reloader. I think most people do this in their html file. |
@peteruithoven: I think my problem was actually with this: #35. The hotloader isn't being transpiled correctly by SystemJS. |
Allowing one to restore state on hot reload.
Very basic usage example: