-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
(Together with a pr to react-native facebook/react-native#22625) Fixes facebook/react-native#21030
This pr isn't intended to be merged as is, merely to point out where the logic needs to be improved and as a quick temporary override if people want to monkeypatch things. |
Counting the number of consecutive errors without a single successful connection attempt and stopping after three or something, would probably already be better than a infinite retry loop. |
@gaearon @bvaughn What do you think of this? This and facebook/react-native#22625 are affecting the DX of react-native developers outside facebook quite significantly, as their logs inside xcode get several reconnection attempt failures per second, hiding any real errors in an ocean of noise. And, even making their computers crash (not just xcode) because of excessive memory and port usage from it. |
The other PR has been merged and released in react-native 0.58-stable (v0.58.6) and 0.59-stable (v0.59.0-rc.3). Could we get this merged as well. I've cherry picked this on top of 3.4.2 and 3.6.0 of react-devtools and made build commits available of react-devtools-core on github, and given instructions how to avoid the issue here: facebook/react-native#21030 |
I think this issue is giving quite a bad impression for both newcomers to react-native, and long term developers. As the logs just keep filling up with errors about connection issues. Even if devtools and the inspector are working perfectly fine. Seems like the default setup for a clean react-native project shouldn't fill up the Xcode logs with noise when developing for iOS. Or is there something missing in the configuration/documentation? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine.
3.6.1 has been published to NPM with this fix. |
Excellent, thanks! |
(Together with a pr to react-native facebook/react-native#22625)
Fixes facebook/react-native#21030