Svelte · Junior · Question 71 of 76

What does $state.snapshot(value) return?

Explanation

Some APIs, like structuredClone, don't work with proxies; the snapshot solves that.

Further reading

Problem with a question

Svelte · Junior · question 71

Test yourself

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

Take this quiz