Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customisation of the root error boundary #2279

Open
infomiho opened this issue Sep 12, 2024 · 1 comment
Open

Allow customisation of the root error boundary #2279

infomiho opened this issue Sep 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@infomiho
Copy link
Contributor

React Router v6 support specifying a React component that will be rendered in case a page fails to render (for which ever reason - invalid data, developer syntax error etc.).

In #2256 we introduced a simple default root error boundary. We want to allow users to customize this component: something like we have for the client.rootComponent.

@infomiho infomiho added the enhancement New feature or request label Sep 12, 2024
@Martinsos
Copy link
Member

Related to #1243 .

Oh ok so React Router v6 PR introduces a default error boundary, nice!

One easy way for them to provide their own error boundary is just to set one up in the rootComponent, it will be more specific then the default one we defined, and they can already do taht out of the box. But I understand that errors might happen on the higher level, during routing, and then it is important they can customioze to top level default one? Ok, makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants