-
Notifications
You must be signed in to change notification settings - Fork 47k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support errorInfo in onRecoverableError #24591
Merged
Merged
Commits on Jun 6, 2022
-
extend onRecoverableError API to support errorInfo
errorInfo has been used in Error Boundaries wiht componentDidCatch for a while now. To date this metadata only contained a componentStack. onRecoverableError only receives an error (type mixed) argument and thus providing additional error metadata was not possible without mutating user created mixed objects. This change modifies rootConcurrentErrors rootRecoverableErrors, and hydrationErrors so all expect CapturedValue types. additionally a new factory function allows the creation of CapturedValues from a value plus a hash and stack. In general, client derived CapturedValues will be created using the original function which derives a componentStack from a fiber and server originated CapturedValues will be created using with a passed in hash and optional componentStack.
Configuration menu - View commit details
-
Copy full SHA for 6cd4884 - Browse repository at this point
Copy the full SHA 6cd4884View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d3c13f - Browse repository at this point
Copy the full SHA 8d3c13fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad431e9 - Browse repository at this point
Copy the full SHA ad431e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f69424 - Browse repository at this point
Copy the full SHA 7f69424View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b596cd - Browse repository at this point
Copy the full SHA 8b596cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ec1094 - Browse repository at this point
Copy the full SHA 8ec1094View commit details -
Configuration menu - View commit details
-
Copy full SHA for 393ca1f - Browse repository at this point
Copy the full SHA 393ca1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0837f6 - Browse repository at this point
Copy the full SHA b0837f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b86e0f - Browse repository at this point
Copy the full SHA 3b86e0fView commit details
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.