react-dynamic-modal icon indicating copy to clipboard operation
react-dynamic-modal copied to clipboard

Hot Module Reloading not working

Open ozyman42 opened this issue 8 years ago • 1 comments

When I update the content of the modal, the update is not being reflected on the open modal. I have to close and re-open the modal for the change to show. Unfortunately I think you may need to rethink the entire API in order to solve this.

ozyman42 avatar Feb 09 '17 02:02 ozyman42

Using
"react-dynamic-modal": "^1.1.1", "react-hot-loader": "^3.0.0-beta.7", with "webpack-hot-middleware": "^2.18.0", in the app.js and specifing the: entry: [ 'react-hot-loader/patch', 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=2000&reload=true', './src/app.js' ], I'm able to have stable react-hot-loader work on all files inside src/ folder, updates immediately. But the reloading will dismiss the open modal in the browser each time a changes are saved. so it must again be triggered to open by a onClick event or other call to set ModalManager.open.

nightsdark avatar Oct 28 '17 01:10 nightsdark