mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-05-05 23:36:38 +00:00
Updated donut.tsx to call super.componentWillUnmount() first, so that it inherits any future logic changes to base
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user