Skip to content

Commit efa6834

Browse files
Pull model: skip transaction notifications after FabricUIManager is invalidated
onTransactionAvailable kept no binding check after the queued pull mount item was replaced by pending surfaces, so a notification arriving after invalidate() still marked the surface pending and armed a frame whose pull does nothing. Return early when the binding is gone, as before.
1 parent cc514f2 commit efa6834

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,9 @@ public void runGuarded() {
10651065
@ThreadConfined(ANY)
10661066
@VisibleForTesting
10671067
void onTransactionAvailable(int surfaceId) {
1068+
if (mBinding == null) {
1069+
return;
1070+
}
10681071
mMountItemDispatcher.addSurfaceIdToPull(surfaceId);
10691072
if (UiThreadUtil.isOnUiThread()) {
10701073
mMountItemDispatcher.tryDispatchMountItems();

0 commit comments

Comments
 (0)