mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
FabricUIManager should only swallow exceptions related to ViewCommands
Summary: In the previous diff I made a few more things "Retryable" exceptions, where previously only strictly ViewCommand-related code would throw Retryable exceptions. This change is to prevent FabricUIManager from swallowing these exceptions if they happen outside of the context of ViewCommands. Changelog: [Internal] Fabric Reviewed By: mdvacca Differential Revision: D21607324 fbshipit-source-id: b3bad4694d2399db447a9117cc31169104b36de5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1a218e561c
commit
480fc28f08
@@ -773,12 +773,16 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
|
||||
// exception but never crash in debug.
|
||||
// It's not clear that logging this is even useful, because these events are very
|
||||
// common, mundane, and there's not much we can do about them currently.
|
||||
ReactSoftException.logSoftException(
|
||||
TAG,
|
||||
new ReactNoCrashSoftException(
|
||||
"Caught exception executing retryable mounting layer instruction: "
|
||||
+ mountItem.toString(),
|
||||
e));
|
||||
if (mountItem instanceof DispatchCommandMountItem) {
|
||||
ReactSoftException.logSoftException(
|
||||
TAG,
|
||||
new ReactNoCrashSoftException(
|
||||
"Caught exception executing retryable mounting layer instruction: "
|
||||
+ mountItem.toString(),
|
||||
e));
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
mBatchedExecutionTime += SystemClock.uptimeMillis() - batchedExecutionStartTime;
|
||||
|
||||
Reference in New Issue
Block a user