mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
a9f1e23d38
commit
475de7982e
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user