Possible to refetch when the app is in the background? #8826
Unanswered
christinachimi
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
-
I am building a React Native app with Expo, using Tanstack/query 5.36.0 currently
First off, thank you so much for your work on this library; it is amazingly helpful. As for my question, I suspect, based on this code, that what I want to do isn't possible, but maybe there is a setting I am missing. Is there any way to allow a query to continue to refetch even when the user has switched to a different app? I thought
refetchIntervalInBackground
would do it but but it does not. Refetching stops as soon as I switch apps. Is this possible?My use case is that I am trying to create "local" notifications on certain data changes, and ideally I could do that even if the app is briefly backgrounded.
Beta Was this translation helpful? Give feedback.
All reactions