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:
Joshua Gross
2022-05-10 16:45:31 -07:00
committed by Facebook GitHub Bot
parent 4e6c5992b7
commit 6915fce898
@@ -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);