svelte · svelte/state_unsafe_mutation
state_unsafe_mutation
Unsafe State Mutation
Reactive state was mutated somewhere it isn't allowed — most commonly inside a `$derived(...)` expression or directly in a template. Derived values must be pure; if the value shouldn't be reactive, declare it without `$state`, or move the mutation into an `$effect`.
References
In this namespace
← previous snippet_invalid_rest_parameter Snippet Invalid Rest Parameter
— end of namespace —