dillon1000/react

Commit

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.
Browse files
Changed paths3 files
First-parent comparison
M packages/react/src/ReactElementValidator.js ModifiedM packages/react/src/jsx/ReactJSXElementValidator.js ModifiedM packages/shared/checkPropTypes.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…