dillon1000/react
Commit
Browse files Fix now-missing errorInfo argument to componentDidCatch() (#12416)
* Add a failing test verifying componentInfo is missing * Pass componentInfo to componentDidCatch and getDerivedStateFromCatch * Only expect stack in DEV * Don't pass the stack to getDerivedStateFromCatch()
Changed paths2 files
First-parent comparisonpackages/react-reconciler/src/ReactFiberCommitWork.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…