dillon1000/react

Commit

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
Browse files
Changed paths1 file
First-parent comparison
M packages/react-reconciler/src/ReactFiberCommitWork.new.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…