-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Hot-reloading is broken #692
Comments
I think this is a problem with a missing prop in LibraryView, not necessarily with hot reload itself. |
But:
For narrowing-down purposes: Does hot-reloading work for you? (Or do you not really use it?) |
I have the same problem as you, but not in all cases. E.g. css changes are always applied cleanly. Hot reload problems are sadly pervasive in large React codebases, nearly every project I worked with that reached a certain size had at least some problems with hot reload. |
Same. I used it at first in my projects, but kept hitting various issues, so eventually gave up and just refresh the page after each change now. (I use webpack-dev-server for incremental compilation, and my page loads pretty fast, so it's barely slower than hot-reloading anyway) It's one of those things that is cool to try out, but at the end of the day, it's both not as stable, or as necessary, as it first seemed. In my opinion, it's only really helpful if either:
Anyway, if hot-reloading is broken in Nuclear anyway, it might be worth disabling it to prevent frustration for new devs; this would also make the refresh process a bit faster, since then the dev-tools wouldn't freeze briefly (from hitting the hot-reload bug), before each manual refresh. (granted, this would mean we'd lose out on the instant css hot-reloads, so idk... maybe there's a way to have hot-reload only applied for the working css portion?) |
I'm not sure how, but it seems that I fixed it somehow somewhere along the way. When you manage to get it to work, could you please confirm? |
Hot reloading does not appear to be working currently.
If changes are made to, eg.
LibraryView/index.js
, I get this error when the electron window tries to load in the changes:Here is the line of code that errors:
nuclear/packages/app/app/App.js
Line 73 in ed03204
To reproduce, just start the
npm run start
script, wait for the app to fully start, add some meaningless line to the render function, then watch as the electron window tries to hot-reload but hits the error above.That this hasn't been resolved yet makes me think either that:
npm run start
to be sufficient...)Any thoughts?
The text was updated successfully, but these errors were encountered: