ctrlplusb / react-async-component

Resolve components asynchronously, with support for code splitting and advanced server side rendering use cases.
MIT License
1.45k stars 62 forks source link

HMR works Once then "is not accepted" #40

Closed bradennapier closed 7 years ago

bradennapier commented 7 years ago

Hey man, So I am having an issue that is killing me. I am not sure if its related to async component or what - i know there are generally issues with react-router and HMR and adding the async is just the cherry on top :-P

Anyway I see you've dealt with literally every issue I am running into so I gotta ask!

On my first update of an async route it does update but I get a warning:

main.js:107 [HMR] unexpected require(./ui/screens/Home/Home.js) from disposed module ./ui/routes.js

then on the next update it fails saying the given path is not accepted.

Any ideas in general? I can provide more information of course but I am pretty sure I'm just doing whatever you were when you had the issues.