mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
8d31e38966
commit
595f5ac64d
@@ -581,9 +581,9 @@ void Binding::schedulerDidFinishTransaction(
|
||||
} else if (mutation.type == ShadowViewMutation::Create) {
|
||||
int tag = mutation.oldChildShadowView.tag;
|
||||
if (createAndDeleteTagsToProcess.find(tag) != createAndDeleteTagsToProcess.end()) {
|
||||
createAndDeleteTagsToProcess.erase(tag);
|
||||
} else {
|
||||
createAndDeleteTagsToProcess.insert(tag);
|
||||
} else {
|
||||
createAndDeleteTagsToProcess.erase(tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user