Commit 3e3676b
fix: untrack does not exempt owned-scope writes — correct the docs, name the owner in the throw (#3157)
CHEATSHEET listed untrack/untracked blocks as an escape hatch for
REACTIVE_WRITE_IN_OWNED_SCOPE, but the guard fires on the ambient owner
and untrack only toggles tracking/strictRead — the documented fix throws
the identical error. The docs were the wrong side, by construction:
component bodies already run untracked and are exactly the scope the
guard most needs to cover. Both lines now say so explicitly.
Also lands the reporter's enhancement: the thrown message appends the
owning scope's name, which previously reached only the diagnostics
channel apps don't subscribe to by default.
Reported by @antoinevanwel with the correct root-cause analysis.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0932c89 commit 3e3676b
3 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
1259 | | - | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
1260 | 1262 | | |
1261 | 1263 | | |
1262 | 1264 | | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
1263 | 1272 | | |
1264 | 1273 | | |
1265 | 1274 | | |
| |||
1278 | 1287 | | |
1279 | 1288 | | |
1280 | 1289 | | |
1281 | | - | |
| 1290 | + | |
1282 | 1291 | | |
1283 | 1292 | | |
1284 | 1293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
0 commit comments