Closed ronag closed 8 years ago
Did you ever resolve this issue? Having a similar one.
This seems to be an issue with HMR rather than cycle-restart.
cycle-restart is only concerned with restoring your application state when your .accept()
callback reruns your Cycle instance (restart()
).
If the accept callback itself isn't behaving as expected then that's an issue with the HMR client library or how it is being used. console.log
ging out from the accept callback in the example included with this library logs out fine so I'm unable to reproduce this.
@averyvery Could you provide the full source code of the file that is calling module.hot.accept
?
Apologies, I think I actually commented on the wrong issue while a lot of tabs were open. What I was seeing wasn't related to this library at all.
Following the example but using the following command line:
"Reloading" is never printed:
However, in the browser log it prints:
Any ideas what I might be doing wrong?