-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 ReactFiberErrorDialog from React + tests #25671
Conversation
|
Summary: Pull Request resolved: facebook#25671 Moves the RN-specific `ReactFiberErrorDialog` implementation from React to RN for easier iteration. Also adds new unit tests. This current change is additive, so we're compatible with the current React renderer which still uses `ExceptionsManager` and not the file added here. After the corresponding React update we can remove `ExceptionsManager` from the RN private interface entirely. Reviewed By: cpojer Differential Revision: D16278938 fbshipit-source-id: d2e44ada12f959b8d483a5ca1387c3891a10acbf
43d71ad
to
e22e50a
Compare
This pull request was successfully merged by @motiz88 in a9cab21. When will my fix make it into a release? | Upcoming Releases |
Summary: #25671 added a shallow unit test for `ReactFiberErrorDialog`, mocking out the (JS) `ExceptionsManager` module. This rewrites that test in terms of `NativeExceptionsManager` instead, so the integration with `ExceptionsManager` is also tested. Also adds tests for the behaviour of the `framesToPop` and `jsEngine` extended error fields, and for passing a frozen error object (seeing as we potentially mutate the error). Reviewed By: rickhanlonii Differential Revision: D16330341 fbshipit-source-id: 0b514d1c8f193a114748739ec31ddb4e06e4d2fd
Summary: Pull Request resolved: facebook/react-native#25671 Moves the RN-specific `ReactFiberErrorDialog` implementation from React to RN for easier iteration. Also adds new unit tests. This current change is additive, so we're compatible with the current React renderer which still uses `ExceptionsManager` and not the file added here. After the corresponding React update we can remove `ExceptionsManager` from the RN private interface entirely. Reviewed By: cpojer Differential Revision: D16278938 fbshipit-source-id: 0c2c0c3e65e524e079730ae3b0cc23e0c0bdc5fd
Summary:
Moves the RN-specific
ReactFiberErrorDialog
implementation from React to RN for easier iteration. Also adds new unit tests.This current change is additive, so we're compatible with the current React renderer which still uses
ExceptionsManager
and not the file added here. After the corresponding React update we can removeExceptionsManager
from the RN private interface entirely.Differential Revision: D16278938