State Management · Senior · Question 53 of 75

What does persisting the TanStack Query cache (persistQueryClient) give you, and what must you watch out for?

Explanation

Persisted queries older than their gcTime are discarded, and a buster string invalidates storage when the data shape changes. Never persist sensitive data unencrypted.

Further reading

Problem with a question

State Management · Senior · question 53

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