Focus and online managers
React Native has no window focus or navigator.onLine, so TanStack Query is told about them: focusManager follows AppState to refetch stale data when the app returns to the foreground, and onlineManager follows the network state to pause queries while offline.
Learn this concept
Lesson 4.8 · TanStack Query cachingUsed in exercises
Exercise 4.10 · Restaurant list screenPrerequisite conceptsTanStack Query