Single fetch: Throwing a response stub with a 4xx status causes a turbo-stream error
Reproduction
Thrown error response stubs are properly handled on data requests but not on document requests - see https://github.com/remix-run/remix/pull/9454 and https://github.com/remix-run/remix/pull/9479
System Info
n/a
Used Package Manager
npm
Expected Behavior
Thrown response stubs hydrate up as ErrorResponse instances for use with useRouteError/isRouteErrorResponse
Actual Behavior
turbo-stream tries to serialize the ReponseStub instance and errors
We ran into a similar case with a redirect response stub in a resource route: https://github.com/remix-run/remix/pull/9479
🤖 Hello there,
We just published version 2.10.0-pre.0 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Thanks!
🤖 Hello there,
We just published version 2.10.0 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Thanks!