382 add error boundary around lazy loaded routes#504
Open
codenerde wants to merge 3 commits into
Open
Conversation
- Detect chunk-load errors by analyzing error messages - Show network-type ErrorState for chunk-load failures - Maintain existing retry functionality - Add comprehensive tests Closes CredenceOrg#382 Co-authored-by: openhands <openhands@all-hands.dev>
Closes CredenceOrg#382 - Remove errorElement from root Route in App.tsx so chunk-load errors propagate to ErrorBoundary instead of being caught by RouteErrorPage - Tighten isChunkLoadError detection: remove over-broad 'load' match, add precise patterns for Vite/Webpack chunk-load errors - Add regression test verifying ErrorBoundary catches chunk-load errors from lazy-loaded routes and shows retry UI (connection issue + try again) - Fix existing test error messages to not trigger chunk-load detection User-visible impact: chunk-load failures (network blips, deploy skew) now show a branded 'Connection issue' panel with a 'Try again' button instead of a white screen or the generic route error page. Previously some users were refreshing the page as a workaround; the retry button makes this a one-click recovery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #382