Open tizmagik opened 7 years ago
Agree on this, the server probably doesn't need to reload unless a file in the src/routes
or src/server
folders changes.
we have since moved from react-hot-loader
to webpack/hot/poll
and the WebpackHotDevClient a la Razzle and create-react-app
which uses SockJS to "fix" the race condition by triggering the client reload.
Next step might be using the experimental @pmmmwh/react-refresh-webpack-plugin
:
https://github.com/jaredpalmer/razzle/blob/4a104e8ecb8de4d2cf4b677b1e3a5a7d09de39c2/packages/razzle/config/createConfigAsync.js#L14