mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Log more metadata when throwing error for non-existent viewState
Summary: Collecting more telemetry to address or debug T112157805 further. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D36295635 fbshipit-source-id: 7896d641a0a745537c8dedf25f44913f47b83876
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4e6c5992b7
commit
6915fce898
+2
-1
@@ -1017,7 +1017,8 @@ public class SurfaceMountingManager {
|
||||
private @NonNull ViewState getViewState(int tag) {
|
||||
ViewState viewState = mTagToViewState.get(tag);
|
||||
if (viewState == null) {
|
||||
throw new RetryableMountingLayerException("Unable to find viewState for tag " + tag);
|
||||
throw new RetryableMountingLayerException(
|
||||
"Unable to find viewState for tag " + tag + ". Surface stopped: " + isStopped());
|
||||
}
|
||||
if (ReactFeatureFlags.enableDelayedViewStateDeletion) {
|
||||
mScheduledForDeletionViewStateTags.remove(tag);
|
||||
|
||||
Reference in New Issue
Block a user