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:
David Vacca
2019-11-04 14:24:46 -08:00
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);
}
}
}