-
Notifications
You must be signed in to change notification settings - Fork 270
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
useIsConnected not updating on Hermes enabled iOS non-debug build #363
Comments
I have added a minimal reproducible example here: Please remember
|
This is also happening on my end, regardless of build type. I am facing this on both release build and debug build, if you delete the app data and launch the app first time on iOS isConnected is null, if you close and re-open the app it works completely fine. I guess this library is dependent on netinfo which is the actual cause of this problem: react-native-netinfo/react-native-netinfo#572 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Current Behavior
useIsConnected
stayed null while using Hermes on iOS. This happened on every startup with exception of the first, and only with non-debug builds.Expected Behavior
useIsConnected
hook changes fromnull
totrue
orfalse
How to reproduce
null
, but never changes totrue
orfalse
A strange thing I've noticed it can be resolved by setting
pingInBackground
to true - but this is not our desired behaviour.We're simply disabling hermes for now.
Reproducible example in the first comment below.
Your Environment
The text was updated successfully, but these errors were encountered: