Closed tobiasandersen closed 7 years ago
Haven't tried with hot reloading yet, but I do want to have an example project that works with it.
Hi @tobiasandersen and @gabrielbull,
Did either of you get this working?
From what I can tell, there's an issue here with HMR preserving components' state within the component tree. Given that module
is a key within Module
's state, HMR is reloading the relevant code chunks but is not updating or flushing each Module
component's state. This means the UI does not update to reflect the reloaded module(s).
Some cursory Googling indicates that this is a fairly common problem, with no catch-all solution yet available.
In the meantime, I've published my fork of this with the above PR. You can access it here:
Hi, great job with the project!
I'm trying to set up hot reloading with your example project, but without any luck so far. Have you tried getting it running?