Fix toaster deinit error

This commit is contained in:
AAGaming
2022-08-12 16:49:28 -04:00
committed by GitHub
parent 9556994e14
commit a38582d158
+3 -3
View File
@@ -84,9 +84,9 @@ class Toaster extends Logger {
}
deinit() {
unpatch(this.instanceRet, 'type');
delete this.node.stateNode.render;
this.node.stateNode.forceUpdate();
this.instanceRet && unpatch(this.instanceRet, 'type');
this.node && delete this.node.stateNode.render;
this.node && this.node.stateNode.forceUpdate();
}
}