-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix HMR #865
Fix HMR #865
Conversation
Changes Unknown when pulling 75d401d on jmeek/fix-hmr into ** on master**. |
couple tiny thing, then pass CI and I will merge! Reviewed 10 of 10 files at r1. spec/dummy/client/package.json, line 38 at r1 (raw file):
don't change that -- we use a relative path via yarn link spec/dummy/client/server-rails-hot.js, line 16 at r1 (raw file):
changed b/c babelrc must be modules false spec/dummy/client/webpack.client.rails.hot.config.js, line 16 at r1 (raw file):
worth commenting that this is b/c react-hot-loader needs to be first spec/dummy/client/webpack.client.rails.hot.config.js, line 106 at r1 (raw file):
worth commenting on why if you want to leave in good if it helps to troubleshoot! spec/dummy/client/app/startup/ClientReduxApp.jsx, line 11 at r1 (raw file):
might want to remove spec/dummy/client/lib/renderApp.js, line 1 at r1 (raw file):
remove file if not used Comments from Reviewable |
Changes Unknown when pulling f3fc297 on jmeek/fix-hmr into ** on master**. |
1 similar comment
Changes Unknown when pulling f3fc297 on jmeek/fix-hmr into ** on master**. |
Looks ready to merge! Reviewed 4 of 7 files at r2. Comments from Reviewable |
@justin808 Do you have any advice on setting up hot reload if we have around 20 entry points? (we use react only for dynamic parts of our page and templates for the rest. |
@Judahmeek can tell @jeffling. |
So I've got hot-reloading working on
spec/dummy
, just not if bothReduxApp
andReduxSharedStoreApp
are imported & registered (hot reloading works on both of them, just not both of them at once). I'm still working out why, but my assumption is that it has something to do with the dependency paths.I also noticed that hot updates to ReduxSharedStoreApp would only apply to the second app on http://0.0.0.0:3000/client_side_hello_world_shared_store), I'm focusing on Egghead's lessoning editing form draft.
This change is