mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix race condition when reporting mounting transactions for deallocated surfaces (#47008)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47008 Changelog: [internal] This code is gated anyway so there's no harm in production. Reviewed By: javache Differential Revision: D64322331 fbshipit-source-id: 005eb385f7e5ccd3d33e2d8c28e45b84f1537d68
This commit is contained in:
committed by
Facebook GitHub Bot
parent
60bc3c5aed
commit
b5271779ec
+4
-1
@@ -121,7 +121,10 @@ void FabricUIManagerBinding::reportMount(SurfaceId surfaceId) {
|
||||
}
|
||||
}
|
||||
if (surfaceHandler != nullptr) {
|
||||
surfaceHandler->getMountingCoordinator()->didPerformAsyncTransactions();
|
||||
auto mountingCoordinator = surfaceHandler->getMountingCoordinator();
|
||||
if (mountingCoordinator != nullptr) {
|
||||
mountingCoordinator->didPerformAsyncTransactions();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
LOG(ERROR) << "FabricUIManagerBinding::reportMount: Surface with id "
|
||||
|
||||
Reference in New Issue
Block a user