- Notifications
You must be signed in to change notification settings - Fork10.5k
Error boundaries#30874
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Error boundaries#30874
Changes from1 commit
Commits
Show all changes
55 commits Select commitHold shift + click to select a range
c0d3d59 Initial experiments
SteveSandersonMS952cac0 Handle async event handler exceptions
SteveSandersonMS4b12fc2 Test cases for lifecycle methods
SteveSandersonMScc44e53 Handle SetParametersAsync exceptions
SteveSandersonMS5351089 Handle IHandleAfterRender exceptions
SteveSandersonMS4e7e3c5 Handle exceptions during rendering
SteveSandersonMSe6c1c1c Update notes about disposal
SteveSandersonMS0d6acd7 Add note about Attach
SteveSandersonMS2b35fe8 Handle exceptions during cascading value notifications
SteveSandersonMS42d1911 Update ErrorMaker.razor
SteveSandersonMS2f68770 Add note about InvokeAsync
SteveSandersonMS80ebf30 Clean up some notes
SteveSandersonMS83de667 Clarify what we do if the IErrorBoundary component itself has an error
SteveSandersonMS2a5a7d3 Force error boundaries to clear up their descendants on error, even b…
SteveSandersonMS0cd43ff More thoughts on error loops
SteveSandersonMS0a7a07f More thoughts
SteveSandersonMS8089c36 Clean up all the stuff about detailed errors and prerendering
SteveSandersonMS4514899 Add PrerenderingErrorBoundaryLogger
SteveSandersonMS2de4259 Let error boundaries catch their own inline errors
SteveSandersonMS415d8dd Redesign around ErrorBoundaryBase abstract base class.
SteveSandersonMS9529163 Define IErrorBoundary as an internal interface for clarity
SteveSandersonMSbf04cf3 Minor fix
SteveSandersonMS1db319e Handle logging errors
SteveSandersonMS0415115 Make it possible to customize the UI via subclassing ErrorBoundary
SteveSandersonMSa28c3ca Better default UI
SteveSandersonMS275ae5a Show you can subclass ErrorBoundary helpfully
SteveSandersonMSd319b9f Rename AutoReset->AutoRecover
SteveSandersonMS15ab863 Remove use of linq
SteveSandersonMS990128e Tidy up comments
SteveSandersonMSc9c7c6f Clean up and expand test cases
SteveSandersonMS2f597f4 CR: Add general-purpose OnErrorAsync to base class
SteveSandersonMS29e4760 Remove AutoRecover feature because it can be done in user code now we…
SteveSandersonMS08d4595 Unit tests for component error boundary dispatch logic
SteveSandersonMS7540d3a Make async flow clearer
SteveSandersonMS34e6519 Fix unrelated test code badness
SteveSandersonMS06da1ef Add E2E test UI
SteveSandersonMS259f5d5 Begin scripting E2E cases
SteveSandersonMS63d950b Add some E2E tests for more difficult cases
SteveSandersonMSae4cdc4 Cope with receiving errors while already in an error state
SteveSandersonMS76f41fe Add failing unit test for errors after disposal
SteveSandersonMSf5be9f1 Have renderer cope with errors after disposal
SteveSandersonMS31def59 Better handling of error loops
SteveSandersonMS015b4e2 Fix description
SteveSandersonMS832f72a Tidyup
SteveSandersonMS50c9ddb Revert some unwanted changes
SteveSandersonMS7df7d5a More cleanup
SteveSandersonMS0a61aaa Add default error boundary content/style to project templates
SteveSandersonMS4955cc3 Fix server E2E tests
SteveSandersonMS92e506b Test for custom error boundary
SteveSandersonMS8f18c40 Test for error ignorer
SteveSandersonMSd151976 Test for inline errors
SteveSandersonMSd85c8d2 Test for errors after disposal
SteveSandersonMS00e5e50 Test for multiple concurrent errors
SteveSandersonMS5eae0b1 Stronger guidance to override OnErrorAsync
SteveSandersonMS9ace45d CR: Improve unit test
SteveSandersonMSFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Let error boundaries catch their own inline errors
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit2de42595dcf3352f44106c7405beadc38a6e8850
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletionssrc/Components/Samples/BlazorServerApp/Pages/ErrorMaker.razor
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
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
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.