docs: add description for derived_references_self error#17646
docs: add description for derived_references_self error#17646FrankFMY wants to merge 1 commit intosveltejs:mainfrom
Conversation
Explain direct and indirect self-referencing derived cycles, with examples and guidance on breaking the cycle using $state. Closes sveltejs#17481
|
|
marking draft until #17666 is resolved. If we do end up just fleshing out the docs, then we really need more realistic examples — these ones don't make much sense to be honest. The one with
It would be good to understand the situations in which people are encountering this. |

Summary
Closes #17481
Adds documentation for the
derived_references_selfruntime error, which previously had no description on the error page.Covers:
$derivedreading itself during evaluation)$stateand updating explicitlyThis is a revised version of #17629, with corrected examples and a valid fix suggestion.