gaearon / react-hot-boilerplate

Minimal live-editing example for React
MIT License
3.91k stars 879 forks source link

Hot loading and iframes #132

Closed ccoffey closed 7 years ago

ccoffey commented 7 years ago

My application needs to run within the context of an iframe because its a "widget" and it needs JavaScript isolation from the parent page.

Unfortunately this breaks hot reloading somehow but I can't figure out how. I have forked react-hot-boilerplate to create a minimal not working example.

The following screenshot shows that HMR detects any changes I make to App.js but the App never gets reloaded.

screen shot 2017-06-29 at 10 35 54 am

I would be really grateful for any suggestions or help anyone can offer me. I am completely stumped.