Skip to content

Conversation

@jacob-ebey
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 25, 2025

🦋 Changeset detected

Latest commit: 2df3cfb

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/dev Major
react-router Major
@react-router/fs-routes Major
@react-router/remix-routes-option-adapter Major
@react-router/architect Major
@react-router/cloudflare Major
react-router-dom Major
@react-router/express Major
@react-router/node Major
@react-router/serve Major
create-react-router Major

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

@jacob-ebey jacob-ebey marked this pull request as ready for review November 25, 2025 06:41
"react-router": minor
---

add support for throwing redirect Response's at RSC render time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be patch since RSC is still unstable right?

!errorRedirectHandledMap.get(error)
) {
// TODO: Handle external redirects?
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we useNavigate and an effect?

window.__reactRouterDataRouter &&
!errorRedirectHandledMap.get(error)
) {
// TODO: Handle external redirects?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to take logic from Link or startRedirectNavigation and turn it into a utility

* enables the unstable_useTransitions flag, as well as the ability to handle
* thrown redirect responses during the render phase.
*/
unstable_rsc?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be able to check for RSCRouterContext from the usage point and avoid prop drilling

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.

3 participants