0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(start-plugin-core): settle across a turn of the event loop between Rsbuild edits

Traced (harness instrumentation, reverted): Rspack's MultiCompiler starts
the compile of a dependent environment (Start's `ssr` after `client`)
through its queue on the tick after its parent's compile ended
(`Watching.invalidate()` from `processQueueWorker`), which the harness's
`settle()` cannot see yet; the next write landed while that compile
paused the watcher, and a removal is then lost (2 of 20 solo runs after
the previous step). `settledAcrossTurn` (v2-hosts.ts): `settle()`, a
`setImmediate` turn, `settle()` again. Used by the v2-edits Rsbuild
sequence and the Rsbuild page row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-19 19:26:33 +02:00
commit 01eb629489
No known key found for this signature in database
3 changed files with 27 additions and 9 deletions