Svelte · Senior · Question 69 of 75

What is a risk of using $state in a class field that is exposed as a public mutable property in a library?

Explanation

Private $state fields are supported and keep the API surface small.

Further reading

Problem with a question

Svelte · Senior · question 69

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