State Management · Senior · Question 54 of 75
What happens to TanStack Query requests when the browser goes offline (default networkMode: 'online')?
- ✓Correct answer: Queries and mutations are paused (
fetchStatus: 'paused') and resume when the connection returns - 2They fail immediately with network errors and stop
- 3They are queued on the server
Explanation
The onlineManager tracks connectivity. networkMode: 'offlineFirst' tries the request once (e.g. for service-worker caches); 'always' ignores connectivity.