-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Continuous Reloading with Hot Reloading! #6597
Comments
Similar error code has been references in this issue. #3747 |
Live reload seems to work fine. |
Everything seems to work fine until hot reload is turned on, and then it just throws that error a few times a second and app keeps trying to reload until it eventually crashes or simulator is quit. Live reload still works as it used to. Seems like something in our app is not happy to be hot reloaded, but unclear where to look since this error is not very informative... Some tips about what that error means or where to look would be appreciated. |
As per the line that says Could you try getting it using |
I'm getting this too, trying to upgrade from 0.19 to 0.22. Pinging The simulator is constantly reloading, with the specific error repeating:
Digging into my
Trying to reinstall globally doesn't work as suggested in #4515 (comment) |
After walking away from this for a few days, and again attempting to upgrade 0.19 to 0.22 - I was getting this behavior again (constantly reloading, can't click on Disable Hot Loading within developer menu because of constant reloading). Resolved it by resetting the simulator's content and settings (Simulator > Reset Content and Settings) and re-running. Seems like the |
hmm interesting i will check it out! @aaronschachter |
we managed to fix this by cleaning up our index.ios to closer match a brand new react project. We first started at around 0.11 so a lot of stuff had diverged since then. Not sure exactly what the original cause was, but many things were going wrong. We finally got hot reload working by a combination of wrapping navigator in a view, extending component instead of the old create class, switching to es6 syntax, removing mixins, setting a fixed dimensions on the parent container, specifying platform type in the appdelegate JS, etc. Now there is a red border around the thing when hot reload is on (is that normal?), but besides that is works quite smoothly. |
So, I fixed this issue by replacing:
with
in my app delegate 🙈 |
Make sure you don't have any tasks running (i.e. Dropbox) inside your project folder that can cause changes to the contents of your project, this will trigger the continuous reload. |
It looks like this is workarounded so I am going to close this issue. Thanks folks for helping out! |
I just starting trying out the hot loading on my log screen of my app.
I am getting the following being emmitted to my debug console and the app is consistently reloading itself.
I actually have to kill simulator to get out of this state.
Basically unusable here. If you need more information ping me here I would love to use this feature for quicker design etc.
The text was updated successfully, but these errors were encountered: