mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
ee409ea3b5
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