Call invokeUnique if event can be coalesce

Summary:
Changelog: [internal]

We should be calling invokeUnique if event can be coalesced, not the other way around.

Reviewed By: JoshuaGross

Differential Revision: D29194528

fbshipit-source-id: 36e4ae71254420ef47deea436cad20eec09712fc
This commit is contained in:
Samuel Susla authored and Facebook GitHub Bot committed 2021-06-17 11:50:03 -07:00
1 parent a9f1e23d38
commit 475de7982e
1 file changed
+2 -2
@@ -829,9 +829,9 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
}
if (canCoalesceEvent) {
eventEmitter.invoke(eventName, params);
} else {
eventEmitter.invokeUnique(eventName, params, customCoalesceKey);
} else {
eventEmitter.invoke(eventName, params);
}
}