dillon1000/react
Commit
Browse files Inline fbjs/lib/EventListener dependency (#11402)
* Drop fbjs/lib/EventListener from tests Assert on the underlying native event listener instead. This test file still needs to be rewritten in terms of public APIs. * Inline fbjs/lib/EventListener dependency We explicitly don't want to shim this and we don't use the return value. We can probably even drop the IE path now since we don't support it. Not sure if that'll be a true breaking change though. * Wrap event listeners and the callback passed to requestIdleCallback This is a FBism. This uses the injection model in ReactErrorUtils. This isn't technically going to used for errors but close enough. This really wants to be eager but we can't because of dynamic injection.
Changed paths4 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactBrowserEventEmitter-test.js ModifiedM packages/react-dom/src/events/ReactDOMEventListener.js ModifiedM packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/shared/ReactErrorUtils.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…