Updated donut.tsx to call super.componentWillUnmount() first, so that it inherits any future logic changes to base

This commit is contained in:
Eric Blackburn
2020-08-06 14:18:56 -05:00
parent 2e8fdad99f
commit 3d3fc19973

View File

@@ -7,8 +7,8 @@ type Props = {
}
type State = {
currentPercent: number,
currentPercent2: number,
currentPercent: number;
currentPercent2: number;
};
export default class Donut extends Base<Props, State> {
state = {
@@ -26,7 +26,7 @@ export default class Donut extends Base<Props, State> {
}
async componentWillUnmount() {
await this.clearDisposers();
super.componentWillUnmount();
this.unmounted = true;
}