React Native OnlineManager Weirdness #5429
Unanswered
wilkinson4
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, maybe something is weird in my android emulator, but I have the recommended
onlineManager
config in my App.js file:What I'm noticing is that if I go from online to airplane mode, try to make a request, then turn airplane mode off it makes the request as expected when the device reconnects. However, if I repeat this behaviour, it never fires the request, but it does capture the network status update. I know this because I have an
OfflineIndicator
component that is usingonlineManager.isOnline()
to conditionally display an offline message, and that seems to be working fine.I'm on the latest version of react-query, running react-native version 0.71.3, and react version 18.2.0. The app that I'm working on is only for Android.
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions