State Management · Senior · Question 63 of 75

What does SWR's custom cache provider option allow?

Explanation

Wrap tests in <SWRConfig value={{ provider: () => new Map() }}> so each test starts with an empty cache.

Further reading

Problem with a question

State Management · Senior · question 63

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