Warn on a yield in strict mode instead of cancelling the thread

This commit is contained in:
Kaan 2026-10-22 15:33:34 +03:00
parent 6b0bbf0cf4
commit d933fe8e9c
3 changed files with 33 additions and 24 deletions

View file

@ -15,7 +15,7 @@ and identifying improper usage.
Currently, strict mode will:
1. Run reactive scopes twice when a source updates.
2. Throw an error if yields occur where they are not allowed.
2. Warn if yields occur where they are not allowed.
3. Checks for `values()` input having duplicate values.
4. Checks for duplicate nested properties at same depth.
5. Checks for destruction of an active scope.