Skip to content

Fix unhandled rejections when aborting blocking frames - #11654

Open
brookslybrand wants to merge 1 commit into
mainfrom
brookslybrand/fix-blocking-frame-abort-rejections
Open

Fix unhandled rejections when aborting blocking frames#11654
brookslybrand wants to merge 1 commit into
mainfrom
brookslybrand/fix-blocking-frame-abort-rejections

Conversation

@brookslybrand

Copy link
Copy Markdown
Contributor

Aborting renderToStream while a page has multiple blocking Frames can reject all frame promises at once. Because blocking frames are awaited in tree order, the first rejection stops traversal and leaves later promises unhandled, which can crash a Node server.

Observe each blocking frame promise when it is created while retaining the original promise for normal resolution and error handling. This matches the non-blocking frame handling added in #11431.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Build Available

A preview build has been created for this PR. You can install it using:

pnpm install "remix-run/remix#preview/pr-11654&path:packages/remix"

This preview build will be updated automatically as you push new commits.

@brookslybrand brookslybrand self-assigned this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant