Skip to content

Commit 6915fce

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
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
1 parent 4e6c599 commit 6915fce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,8 @@ public View getView(int reactTag) {
10171017
private @NonNull ViewState getViewState(int tag) {
10181018
ViewState viewState = mTagToViewState.get(tag);
10191019
if (viewState == null) {
1020-
throw new RetryableMountingLayerException("Unable to find viewState for tag " + tag);
1020+
throw new RetryableMountingLayerException(
1021+
"Unable to find viewState for tag " + tag + ". Surface stopped: " + isStopped());
10211022
}
10221023
if (ReactFeatureFlags.enableDelayedViewStateDeletion) {
10231024
mScheduledForDeletionViewStateTags.remove(tag);

0 commit comments

Comments
 (0)