Fabric: Unconditional state management in Binding::schedulerDidFinishTransaction

Summary: Originally, moving the mount instruction generation under the `if` was a perf optimization but now, since we converge `LocalData` and `State`, this is no longer possible (because we need to treat State as LocalData in some cases).

Reviewed By: mdvacca

Differential Revision: D15962378

fbshipit-source-id: 37f9fadb72ac53450c2d499452610d9835f2964d
This commit is contained in:
Valentin Shergin
2019-07-07 22:46:20 -07:00
committed by Facebook Github Bot
parent abc663dd5a
commit 142af1751b
@@ -559,12 +559,12 @@ void Binding::schedulerDidFinishTransaction(
deletedViewTags.end()) {
mountItems[position++] =
createUpdatePropsMountItem(localJavaUIManager, mutation);
}
// State
if (mutation.newChildShadowView.state) {
mountItems[position++] =
createUpdateStateMountItem(localJavaUIManager, mutation);
}
// State
if (mutation.newChildShadowView.state) {
mountItems[position++] =
createUpdateStateMountItem(localJavaUIManager, mutation);
}
// LocalData