Replies: 1 comment 1 reply
-
You can wrap it with ClientOnly. render the part only in client. |
Beta Was this translation helpful? Give feedback.
1 reply
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'd like to catch errors within a component and render an fallback UI.
I understand that Remix had ErrorBoundaries for routes, but I could not find anything for wrapping components.
In the React documentation they talk about a ErrorBoundary component that catched rendering errors and renders an alternative component.
(see: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary)
This implementation does not work with Remix, since it is SSR.
Other SSR-suported error boundaries did not work either.
Does anyone have a working ErrorBoundary for components for Remix and maybe it could be nice to make this built-in?
Example:

Beta Was this translation helpful? Give feedback.
All reactions