refetchIntervalInBackground behaviour on mobile #5170
-
I'm trying to understand what would be the behavior of As I understand, when the browser is not active,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If the question wasn't about react native, but just browsers on mobile: |
Beta Was this translation helpful? Give feedback.
refetchIntervalInBackground
checks forfocusManager.isFocused
, which you might need to implement differently in react-native: https://tanstack.com/query/v4/docs/react/react-native#refetch-on-app-focusIf the question wasn't about react native, but just browsers on mobile:
focusManager
is implemented with the visibilitychange event, so I think it'll work just the same as on a desktop