State Management · Middle · Question 39 of 75

When does SWR revalidate data automatically by default?

Explanation

Each trigger can be turned off (revalidateOnFocus: false, revalidateOnReconnect: false), and polling is enabled with refreshInterval. For immutable data there's useSWRImmutable.

Further reading

Problem with a question

State Management · Middle · question 39

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