Skip to content

Commit 595f5ac

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix Collapsing of Delete-Create mounting instructions
Summary: This diff fixes the Collapsing of Delete-Create mounting instructions algorithm. By mistake I switch the conditions before landing the original diff. Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D18306616 fbshipit-source-id: 50cd8ca67adcaf172ce51896df684fed270b2d51
1 parent 8d31e38 commit 595f5ac

File tree

1 file changed

+2
-2
lines changed
  • ReactAndroid/src/main/java/com/facebook/react/fabric/jni

1 file changed

+2
-2
lines changed

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ void Binding::schedulerDidFinishTransaction(
581581
} else if (mutation.type == ShadowViewMutation::Create) {
582582
int tag = mutation.oldChildShadowView.tag;
583583
if (createAndDeleteTagsToProcess.find(tag) != createAndDeleteTagsToProcess.end()) {
584-
createAndDeleteTagsToProcess.erase(tag);
585-
} else {
586584
createAndDeleteTagsToProcess.insert(tag);
585+
} else {
586+
createAndDeleteTagsToProcess.erase(tag);
587587
}
588588
}
589589
}

0 commit comments

Comments
 (0)