From 3d3fc199731bf2a68ec705d45852f56e36de7c50 Mon Sep 17 00:00:00 2001 From: Eric Blackburn Date: Thu, 6 Aug 2020 14:18:56 -0500 Subject: [PATCH] Updated donut.tsx to call super.componentWillUnmount() first, so that it inherits any future logic changes to base --- client/src/components/donut.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/donut.tsx b/client/src/components/donut.tsx index fa8a06d..dee0653 100644 --- a/client/src/components/donut.tsx +++ b/client/src/components/donut.tsx @@ -7,8 +7,8 @@ type Props = { } type State = { - currentPercent: number, - currentPercent2: number, + currentPercent: number; + currentPercent2: number; }; export default class Donut extends Base { state = { @@ -26,7 +26,7 @@ export default class Donut extends Base { } async componentWillUnmount() { - await this.clearDisposers(); + super.componentWillUnmount(); this.unmounted = true; }