Render client (browser) only components with suspense fallback on server #52027
alexandernanberg
started this conversation in
Ideas
Replies: 1 comment
-
Same problem here. client-only component shoud throw error in server-side runtime. Next.js should give developer a workaround to do not display non-nessesary error overlay. |
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.
-
Goals
Non-Goals
No response
Background
https://react.dev/reference/react/Suspense#providing-a-fallback-for-server-errors-and-server-only-content
Proposal
Either by Next providing a custom error class that won't trigger the error overlay.
E.g.
or by exposing a component that hides this completely for consumers
Beta Was this translation helpful? Give feedback.
All reactions