State Management · Middle · Question 63 of 75

How do you poll a query every 10 seconds with TanStack Query?

Explanation

staleTime only marks data stale; it doesn't trigger fetches by itself. refetchIntervalInBackground controls polling in hidden tabs.

Further reading

Problem with a question

State Management · Middle · question 63

Test yourself

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

Take this quiz