Replies: 1 comment
-
Same error for me: statusText renders as non-empty for a moment, then becomes empty. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm throwing a 404 error from a loader and rendering it with an error boundary defined in
root.tsx
. I'm including<Scripts />
in thebody
of the error boundary page.Here's the thrown error from a route loader:
Here's the error boundary in
root.tsx
:With
<Scripts />
in the error page, I see a second call -- aFETCH
-- to the route, but with a?_data=<encoded-route-path>
.My first question is, what's going on here?
My second question relates to deployment as a Cloudflare worker. When I run locally with Miniflare, the value of
error.statusText
remains unchanged from the server-side rendering to whatever's going with the fetch. In production though, the value forerror.statusText
on the fetch is blank (null/undefined/empty-string) and so I get a flash: I first see the expected/correct error text and then it sadly disappears.I'm addressing this by not including
<Scripts />
in the error boundary, but this leaves me puzzled on the two fronts:_data
in the first place?Beta Was this translation helpful? Give feedback.
All reactions