react/scripts/flow
Joshua Gross 05c283c3c3
Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386)
* Implement addEventListener and removeEventListener on Fabric HostComponent

* add files

* re-add CustomEvent

* fix flow

* Need to get CustomEvent from an import since it won't exist on the global scope by default

* yarn prettier-all

* use a mangled name consistently to refer to imperatively registered event handlers

* yarn prettier-all

* fuzzy null check

* fix capture phase event listener logic

* early exit from getEventListeners more often

* make some optimizations to getEventListeners and the bridge plugin

* fix accumulateInto logic

* fix accumulateInto

* Simplifying getListeners at the expense of perf for the non-hot path

* feedback

* fix impl of getListeners to correctly remove function

* pass all args in to event listeners
2022-03-02 12:00:08 -08:00
..
config Delete all but one build2 reference (#22391) 2021-09-21 13:15:41 -07:00
createFlowConfigs.js [DevTools] Add DevTools forked Feature flags (#18994) 2020-10-12 13:07:10 -04:00
environment.js Add onRecoverableError option to hydrateRoot, createRoot (#23207) 2022-02-04 07:57:33 -08:00
react-devtools.js Console Logging for StrictMode Double Rendering (#22030) 2021-08-25 15:35:38 -07:00
react-native-host-hooks.js Fabric HostComponent as EventEmitter: support add/removeEventListener (unstable only) (#23386) 2022-03-02 12:00:08 -08:00
react-relay-hooks.js [Flight] Simplify Relay row protocol (#20168) 2020-11-10 19:54:42 -08:00
runFlow.js Console message fixed for devtools (#23067) 2022-01-05 11:45:45 -05:00
xplat.js Re-add old Fabric Offscreen impl behind flag (#22018) 2021-08-03 19:30:20 -07:00