mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: detect CSS preload errors and keep banner visible during error states
- Add "unable to preload" pattern to isChunkError for Vite CSS preload failures - Move ConnectionMonitor and ConnectionBanner outside ErrorBoundary so they remain visible when the error boundary catches a render crash - Add test for CSS preload error retry
This commit is contained in:
@@ -7,7 +7,8 @@ export function isChunkError(error: unknown): boolean {
|
||||
msg.includes("dynamically imported module") ||
|
||||
msg.includes("loading chunk") ||
|
||||
msg.includes("loading css chunk") ||
|
||||
msg.includes("failed to fetch")
|
||||
msg.includes("failed to fetch") ||
|
||||
msg.includes("unable to preload")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user