Replies: 1 comment
-
Is this not a nextJs specific question? As you said, you would get the same behaviour if you |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a problem with error handling when streaming using Prefetch. The issue is that when a fetch call throws an error using throw new Error(), Next.js reports the following error:
"Switched to client rendering because the server rendering errored:". So how can I deal with such a message and handle errors properly?
Btw the promise rejection is correctly caught by error.tsx.
Code:
Beta Was this translation helpful? Give feedback.
All reactions