dillon1000/react
Commit
Browse files 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
Changed paths6 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…