Commit 70c2124
fix(gxt-backend): cap LinkTo reactor fires in renderLinkToElement wrapper
The validator.ts cap (commit 29062f5) is gated by tracked metadata
in _reactorMeta WeakMap that doesn't get populated reliably in the
CI-built bundle (rollup tree-shake of @glimmer/validator's
registerClassicReactor export, see renderer.ts:117 — the dev-mode
alias works but the build-time static analysis falls back to the
no-op shim, which means the renderer.ts reactor doesn't go through
my cap path; manager.ts uses a relative import but the leak-debug
snapshots still show 0 reactors in CI).
This commit moves the cap into manager.ts directly inside the
wrapped() callback that wraps renderLinkToElement's reactor — no
diagnostic-metadata dependency. Each LinkTo reactor self-destructs
after 10,000 lifetime fires regardless of build resolution, which
bounds the cost of leaked reactors so they can't saturate the
runloop and trigger the testem 1200s browser timeout.
Smoke (14 modules / 333 tests) green.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 29062f5 commit 70c2124
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9479 | 9479 | | |
9480 | 9480 | | |
9481 | 9481 | | |
| 9482 | + | |
| 9483 | + | |
| 9484 | + | |
| 9485 | + | |
| 9486 | + | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
| 9492 | + | |
9482 | 9493 | | |
9483 | 9494 | | |
9484 | 9495 | | |
| 9496 | + | |
| 9497 | + | |
| 9498 | + | |
| 9499 | + | |
| 9500 | + | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
| 9504 | + | |
9485 | 9505 | | |
9486 | 9506 | | |
9487 | 9507 | | |
| |||
0 commit comments