State Management · Senior · Question 48 of 75

What's the main risk of copying server data from useQuery into a Zustand/Redux store?

Explanation

Read server data from the query cache wherever needed (the same hook in many components is deduplicated). Store only client decisions (selected id, filters) and derive the rest.

Further reading

Problem with a question

State Management · Senior · question 48

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