[instant] Let dev-server requests bypass the fetch lock#95761
Merged
Conversation
Contributor
Stats skippedCommit: c4047c1 |
Contributor
Tests PassedCommit: c4047c1 |
eps1lon
requested review from
acdlite and
Copilot
and removed request for
Copilot
July 14, 2026 11:55
eps1lon
marked this pull request as ready for review
July 14, 2026 11:55
acdlite
approved these changes
Jul 17, 2026
eps1lon
enabled auto-merge (squash)
July 19, 2026 23:25
eps1lon
force-pushed
the
sebbie/instant-api-dev-server-lock-005d24
branch
from
July 19, 2026 23:27
b35a2e3 to
f225fc4
Compare
While an instant() testing scope is active, the navigation testing lock replaces `window.fetch` and queues every request until the scope ends. This also blocked the dev server's own client-side requests, i.e. everything served by the hot-reloader middlewares: the error overlay could not resolve stack frames via `/__nextjs_original-stack-frames`, source maps could not load via `/__nextjs_source-map`, and devtools actions like launch-editor hung for the whole scope. The fix lets same-origin requests to `/__nextjs_`-prefixed paths (the shared prefix of all hot-reloader middleware endpoints) through the lock immediately.
eps1lon
force-pushed
the
sebbie/instant-api-dev-server-lock-005d24
branch
from
July 19, 2026 23:28
f225fc4 to
c4047c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While an
instant()testing scope is active, the navigation testing lock replaceswindow.fetchand queues every request until the scope ends. This also blocked the dev server's own client-side requests, i.e. everything served by the hot-reloader middlewares: the error overlay could not resolve stack frames via/__nextjs_original-stack-frames, source maps could not load via/__nextjs_source-map, and devtools actions like launch-editor hung for the whole scope.The fix lets same-origin requests to
/__nextjs_-prefixed paths (the shared prefix of all hot-reloader middleware endpoints) through the lock immediately.Before:
CleanShot.2026-07-14.at.13.55.18.mp4