svelte · svelte/derived_references_self
derived_references_self
Derived References Self
A `$derived(...)` expression reads the very value it's assigned to, creating a circular dependency. Derived values must be computed purely from other state — restructure the logic so the derivation doesn't depend on its own previous result.