fix: don't wait until regaining focus to lock app

This commit is contained in:
Antonella Sgarlatta
2021-06-07 19:07:31 -03:00
parent 3d2b4e3521
commit 98c6078a0d
3 changed files with 20 additions and 56 deletions

View File

@@ -40,8 +40,8 @@ export class PureViewCtrl<P = CtrlProps, S = CtrlState> {
}
deinit(): void {
this.unsubApp();
this.unsubState();
this.unsubApp?.();
this.unsubState?.();
for (const disposer of this.reactionDisposers) {
disposer();
}