fix RCTNetInfo first time connection status#20820
Closed
karanjthakkar wants to merge 1 commit intofacebook:masterfrom
Closed
fix RCTNetInfo first time connection status#20820karanjthakkar wants to merge 1 commit intofacebook:masterfrom
karanjthakkar wants to merge 1 commit intofacebook:masterfrom
Conversation
Contributor
Author
|
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? |
Contributor
Author
|
cc: @hramos, can you help here? 🙂 |
facebook-github-bot
approved these changes
Sep 12, 2018
Contributor
facebook-github-bot
left a comment
There was a problem hiding this comment.
hramos is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Collaborator
|
@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 |
kelset
pushed a commit
that referenced
this pull request
Sep 21, 2018
Summary: Fixes #20804, #8615, #18368 (comment) Pull Request resolved: #20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
matt-oakes
pushed a commit
to matt-oakes/react-native
that referenced
this pull request
Feb 7, 2019
Summary: Fixes facebook#20804, facebook#8615, facebook#18368 (comment) Pull Request resolved: facebook#20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
t-nanava
pushed a commit
to microsoft/react-native-macos
that referenced
this pull request
Jun 17, 2019
Summary: Fixes facebook#20804, facebook#8615, facebook#18368 (comment) Pull Request resolved: facebook#20820 Differential Revision: D9798488 Pulled By: hramos fbshipit-source-id: bd93a857b622edfbefdbd1baea746f27658f1366
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #20804, #8615, #18368 (comment)
Test Plan:
connectionChangeevent 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.connectionChangeevent 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