State Management · Senior · Question 54 of 75

What happens to TanStack Query requests when the browser goes offline (default networkMode: 'online')?

Explanation

The onlineManager tracks connectivity. networkMode: 'offlineFirst' tries the request once (e.g. for service-worker caches); 'always' ignores connectivity.

Further reading

Problem with a question

State Management · Senior · question 54

Test yourself

Take the State Management · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz