-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Don't treat a route as a resource route if it only has an ErrorBoundary #6106
Comments
Interesting. I wonder what scenarios you would want to export an To me, I think it should be an error instead of treating it as a resource route, since they don't have UI. |
The use-case I've seen is a singular top level error boundary in a pathless route below root - so it can still access valid loader data from the root loader (i18n info, etc.). I think that might be the use-case Ryan was doing when he ran into it today. |
Fixed in #6125 - should be released in Remix 1.16 |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.15.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Expected Behavior
Any route exporting a default component,
ErrorBoundary
, orCatchBoundary
is considered a UI route.Actual Behavior
Only routes exporting a default component are considered a UI route.
The text was updated successfully, but these errors were encountered: