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:
David Vacca
2019-07-02 14:47:22 -07:00
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>(