Fix scope stack staying broken after a yield in strict mode (#105)
Some checks are pending
unit-test / unit-test (push) Waiting to run

* Fix scope stack staying broken after a yield in strict mode

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

* Fix type error when an effect errors outside strict mode
This commit is contained in:
Kaan 2026-10-22 15:56:38 +03:00 • committed by GitHub
parent d99dbe1873
commit 033d30fbfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 12 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.