dillon1000/react
Commit
Browse files Only prepare extra stack frames if needed (#19014)
We currently prepare an extra stack frame before they're needed. Particularly for propTypes. This causes problems as they can have side-effects with the new component stacks and it's slow. This moves it to be lazy.
Changed paths3 files
First-parent comparisonpackages/react/src/ReactElementValidator.js ModifiedM packages/react/src/jsx/ReactJSXElementValidator.js ModifiedM packages/shared/checkPropTypes.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…