State Management · Senior · Question 22 of 75

What is structural sharing in TanStack Query?

Explanation

The new JSON is deep-compared with the old one and equal subtrees reuse references, so memo components and effect dependencies don't react to identical data. It can be disabled for huge non-JSON data.

Further reading

Problem with a question

State Management · Senior · question 22

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