-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 RCTNetInfo first time connection status #20820
Conversation
I don't understand why the tests are failing. The logs seem to be unrelated to the changes made in this PR. Maybe someone else knows what the issue is? |
cc: @hramos, can you help here? 🙂 |
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.
hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@karanjthakkar merged commit 36199d3 into Once this commit is added to a release, you will see the corresponding version tag below the description at 36199d3. If the commit has a single |
Summary: Fixes facebook#20804, facebook#8615, facebook#18368 (comment) Pull Request resolved: facebook#20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
Summary: Fixes #20804, #8615, #18368 (comment) Pull Request resolved: #20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
Summary: Fixes facebook#20804, facebook#8615, facebook#18368 (comment) Pull Request resolved: facebook#20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
Summary: Fixes facebook#20804, facebook#8615, facebook#18368 (comment) Pull Request resolved: facebook#20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
Fixes #20804, #8615, #18368 (comment)
Test Plan:
connectionChange
event listenerTest Code:
The code shown above will now return the right connection status. If you're connected to Wifi or cellular, it will return
true
, elsefalse
. Previously, it always returned false for the first time.connectionChange
event listenerTest Code:
The change done in this PR does not create any regression in the event listener flow. This still works perfectly fine.
Release Notes:
[IOS] [BUGFIX] [NETINFO] - fixes RCTNetInfo incorrect first time connection status