1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-19 08:53:28 +00:00

onDestroy needed for broadcast subscriptions

This commit is contained in:
Chad Scharf
2020-11-04 14:00:44 -05:00
parent c9c6a11390
commit 97e982bf01
7 changed files with 40 additions and 5 deletions

View File

@@ -58,6 +58,11 @@ export class ViewComponent extends BaseViewComponent implements OnChanges {
});
}
ngOnDestroy() {
super.ngOnDestroy();
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
}
async ngOnChanges() {
await super.load();
}