mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user