Skip to content

Commit

Permalink
change destroy to safelyCallDestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaruan committed Aug 13, 2020
1 parent dff97a6 commit bd8943e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberCommitWork.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function commitHookEffectListUnmount(tag: number, finishedWork: Fiber) {
const destroy = effect.destroy;
effect.destroy = undefined;
if (destroy !== undefined) {
destroy();
safelyCallDestroy(finishedWork, destroy);
}
}
effect = effect.next;
Expand Down

0 comments on commit bd8943e

Please sign in to comment.