Svelte · Senior · Question 7 of 75

What is the cost of deep $state proxies, and how do you control it?

Explanation

Only use $state for values that drive effects, deriveds or the template. Non-reactive data can stay in normal variables.

Further reading

Problem with a question

Svelte · Senior · question 7

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz