Svelte · Junior · Question 71 of 76
What does $state.snapshot(value) return?
- ✓Correct answer: A plain, non-reactive copy of a state proxy, for logging or passing to external APIs
- 2A reactive copy
- 3The previous value of the state
Explanation
Some APIs, like structuredClone, don't work with proxies; the snapshot solves that.