Skip to content

Conversation

brophdawg11
Copy link
Contributor

@brophdawg11 brophdawg11 commented Aug 15, 2025

#13766 (comment)

Stacked on #14181

When throwing from a server middleware on a document/data request, only redirects are returned verbatim - anything else thrown will bubble to the error boundary (including Response, data, Error, etc.)

Copy link

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: f00f4d9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
react-router Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/dev Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch
@react-router/fs-routes Patch
@react-router/remix-routes-option-adapter Patch
create-react-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brophdawg11 brophdawg11 force-pushed the brophdawg11/middleware-thrown-responses branch from 3ead3b3 to a92861d Compare August 15, 2025 15:24
@brophdawg11 brophdawg11 force-pushed the brophdawg11/middleware-thrown-responses branch from a92861d to 2ed90b2 Compare August 15, 2025 18:55
@brophdawg11 brophdawg11 merged commit 869e168 into release-next Aug 15, 2025
5 checks passed
@brophdawg11 brophdawg11 deleted the brophdawg11/middleware-thrown-responses branch August 15, 2025 19:33
Copy link
Contributor

🤖 Hello there,

We just published version 7.8.1-pre.1 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 7.8.1 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

joseph0926 pushed a commit to joseph0926/react-router that referenced this pull request Aug 17, 2025
@MichaelDeBoey MichaelDeBoey changed the title Propagate middleware thrown non-redirect responses to the boundary feat(react-router/router): Propagate middleware thrown non-redirect responses to the boundary Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants