mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Prevent execution of MountItems without mounting instructions
Summary: This diff prevents the execution of MountItems without mounting instructions Reviewed By: JoshuaGross Differential Revision: D16063571 fbshipit-source-id: 97ff93c6880c7d8857f61d4998df4327f41fafdd
This commit is contained in:
committed by
Facebook Github Bot
parent
b1b6501ac9
commit
7c3f3e3146
@@ -596,6 +596,11 @@ void Binding::schedulerDidFinishTransaction(
|
||||
}
|
||||
}
|
||||
|
||||
if (position <= 0) {
|
||||
// If there are no mountItems to be sent to the platform, then it is not necessary to even call.
|
||||
return;
|
||||
}
|
||||
|
||||
static auto createMountItemsBatchContainer =
|
||||
jni::findClassStatic(UIManagerJavaDescriptor)
|
||||
->getMethod<alias_ref<JMountItem>(
|
||||
|
||||
Reference in New Issue
Block a user