-
Couldn't load subscription status.
- Fork 269
Open
Description
Current Behavior
- I recently started using 6.0.2 and have noticed that
useIsConnectedwill return null prior to the first "check". This breaks a lot of assumptions that I had from 5.X since it defaulted to true previously. - I now need to do a bunch of null checks to prevent running logic that was only intended for
false
Expected Behavior
- I expect the value to be true until we have determined that it is false.
I expect the typing foruseIsConnectedto reflect what it will return- Update: the typing is correct, VSCode let me down
How to reproduce
- Repro can be found here
Your Environment
| software | version |
|---|---|
| react-native-offline | 6.0.2 |
| react-native | 0.71.4 |
| node | 18 |
| npm or yarn | yarn 1.22.19 |
simongt
Metadata
Metadata
Assignees
Labels
No labels