dillon1000/react

Commit

Use static injection for ReactErrorUtils (#11725)

* Use `this` inside invokeGuardedCallback

It's slightly odd but that's exactly how our www fork works.
Might as well do it in the open source version to make it clear we rely on context here.

* Move invokeGuardedCallback into a separate file

This lets us introduce forks for it.

* Add a www fork for invokeGuardedCallback

* Fix Flow
Browse files
Changed paths6 files
First-parent comparison
M packages/react-dom/src/client/ReactDOMFB.js ModifiedM packages/shared/ReactErrorUtils.js ModifiedM packages/shared/__tests__/ReactErrorUtils-test.internal.js ModifiedA packages/shared/forks/invokeGuardedCallback.www.js AddedA packages/shared/invokeGuardedCallback.js AddedM scripts/rollup/forks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…