Reset RootView ID when root view is detached from view hierarchy

Summary:
I have a theory that T53114059 can be caused by (1) other crashes, and/or (2) reloads. Clear out the ID of a RootView when it is detached.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D21732066

fbshipit-source-id: 5e607f34cf42ca26bdf199d5d3024fd49a60dc1e
This commit is contained in:
Joshua Gross
2020-05-27 13:34:43 -07:00
committed by Facebook GitHub Bot
parent 0a12f3ea77
commit bd314168dd
@@ -840,6 +840,9 @@ public class ReactInstanceManager {
detachViewFromInstance(reactRoot, currentContext.getCatalystInstance());
}
}
// Reset reactRoot content in case it's reused
clearReactRoot(reactRoot);
}
}