Drop redundant bootstrap error boundary
React Router routes render and loader errors to the route-level boundaries, so the App-level boundary above the router could only catch provider render failures — which today are trivial — while true bootstrap failures throw at module load before it mounts. Neither console nor trust wraps App this way. Rely on the root route boundary instead and remove the BootstrapError fallback it used. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -211,7 +211,7 @@ The portal ships three fallback tiers, all backed by the same `ErrorBoundary`:
|
||||
|
||||
| Tier | Placement | Fallback |
|
||||
|------|-----------|----------|
|
||||
| Global (bootstrap) | around `RouterProvider` in `App.tsx`, and the root route | `ErrorState` full page (standalone) |
|
||||
| Global | root route (`RootErrorBoundary`) | `ErrorState` full page (standalone) |
|
||||
| Page | pathless child route inside the layout | `ErrorState` inside the shell (TopBar/footer survive) |
|
||||
| Section / row | around a fragment-reading subtree | `InlineError` (vertical for sections, horizontal for rows) with a retry |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user