mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +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:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user