-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Remix redirect on bounce #473
Conversation
@byrichardpowell FYI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems good to me! Could you please run yarn changeset
to add a changeset so we can merge it? This should just be a patch change, and I'd recommend this message:
Fixed the errorBoundary
to work with new cases in Remix v2.
@paulomarg I asked the Remix team about the difference between |
Added changeset and tests. If I have understood the code correctly, I believe |
Thanks for chasing it down. As far as this codebase goes, this is the only place where we do this. We're trying to find a better way to handle the headers in these cases, so hopefully this code will be replaced by a "proper" check in the future. Let's also leave the previous implementation around, as you said it helps with compatibility and shouldn't cause any problems in v2 if |
WHY are these changes introduced?
Remix v2 changed some instances of
ErrorResponse
toErrorResponseImpl
, breakingconst { redirect } = authenticate.admin(request);
redirects.WHAT is this pull request doing?
This change allows redirects to work on both
ErrorResponse
andErrorResponseImpl
.Type of change
Checklist
yarn changeset
to create a draft changelog entry (do NOT update theCHANGELOG.md
files manually)