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:
@@ -58,6 +58,11 @@ export class ViewComponent extends BaseViewComponent implements OnChanges {
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
super.ngOnDestroy();
|
||||
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
|
||||
}
|
||||
|
||||
async ngOnChanges() {
|
||||
await super.load();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user