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

test: pin a webpack hot update without React Refresh and a dev-server lookup deadlock

Route HMR keeps the previous component options for React Refresh to patch,
also when no React Refresh runtime is installed, so webpack apps without a
refresh plugin (like the webpack quickstart example) never show an edited
route component until a reload.

In a Vite dev server with an empty dependency cache, a client module with a
server fn and a top-level call of a pre-bundled dependency (a `z.object()`
schema) never finishes transforming: the compiler's module lookup waits for
the dependency optimizer, which waits for the transform. Hit by
`server.warmup`, a middleware-mode server's first request and direct
`transformRequest()` calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-15 15:42:52 +02:00
commit 7afe254d66
No known key found for this signature in database
2 changed files with 148 additions and 5 deletions