dillon1000/react
Commit
Browse files change destroy to safelyCallDestroy (#19605)
We use safelyCallDestroy for commitUnmount and passive effects unmounts but we call destroy directly in commitHookEffectListUnmount (AKA layout effects unmounts because we don't use this anywhere else). This PR changes the direct destroy call to safelyCallDestroy for consistency
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/ReactFiberCommitWork.new.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…