diff --git a/ReactCommon/fabric/mounting/MountingCoordinator.cpp b/ReactCommon/fabric/mounting/MountingCoordinator.cpp index a063a2e6f1a..93b7fb24ebe 100644 --- a/ReactCommon/fabric/mounting/MountingCoordinator.cpp +++ b/ReactCommon/fabric/mounting/MountingCoordinator.cpp @@ -52,6 +52,11 @@ void MountingCoordinator::push(ShadowTreeRevision &&revision) const { void MountingCoordinator::revoke() const { std::lock_guard lock(mutex_); + // We have two goals here. + // 1. We need to stop retaining `ShadowNode`s to not prolong their lifetime + // to prevent them from overliving `ComponentDescriptor`s. + // 2. A possible call to `pullTransaction()` should return empty optional. + baseRevision_.rootShadowNode_.reset(); lastRevision_.reset(); }