-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add error boundary components and exception logging #6655
Conversation
# Conflicts: # gutenberg # ios-xcframework/XCFrameworkScaffold.xcodeproj/project.pbxproj
|
||
if [[ -n "$BUILDKITE_TAG" ]]; then | ||
echo "--- :arrow_up: Upload Android source map" | ||
node gutenberg/node_modules/react-native/scripts/compose-source-maps.js bundle/android/App.text.js.map bundle/android/App.js.map -o bundle/android/App.composed.js.map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The composed source map is now generated as part of the bundle
npm command.
# Conflicts: # gutenberg # package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good and the iOS test build works as expected.
I know we still need to test with an Android build but unless anything changes, this looks ready to go.
Related PRs:
Closes #1187 (comment).
The changes coming from Gutenberg enable the error boundary at the editor and block level. As well as provide a bridge function to log JavaScript exceptions to the Crash Logging service used in the host apps.
Additionally, this PR includes the following changes:
To test
Since it involves testing exceptions, we need to modify the code to force errors and generate an installable build. A test PR has been created for this purpose, follow the testing instructions from #6654.
PR submission checklist: