State Management · Senior · Question 71 of 75

How does staleTime: Infinity differ from refetchOnMount: false?

Explanation

With refetchOnMount: false, focus and reconnect still refetch stale data. Fresh data can still be invalidated explicitly.

Further reading

Problem with a question

State Management · Senior · question 71

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