diff --git a/src/App.tsx b/src/App.tsx index 6fbd3ba..5ad2288 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -200,9 +200,16 @@ function AdminRoute({ children }: { children: React.ReactNode }) { return {children}; } -// Suspense wrapper for lazy components +// Suspense + error boundary wrapper for lazy routes. The boundary lives +// OUTSIDE Suspense so chunk-load failures (caught by lazyWithRetry's reload +// path) and render-time exceptions both surface in the page-level fallback +// instead of crashing the entire shell via the top-level boundary. function LazyPage({ children }: { children: React.ReactNode }) { - return }>{children}; + return ( + + }>{children} + + ); } function BlockingOverlay() {