Load component on init, then watch (#669)
This commit is contained in:
parent
cda649fa21
commit
b0f735814f
|
@ -59,6 +59,8 @@ export class LockComponent implements OnInit {
|
|||
) {}
|
||||
|
||||
async ngOnInit() {
|
||||
// Load the first and observe updates
|
||||
await this.load();
|
||||
this.stateService.activeAccount.subscribe(async (_userId) => {
|
||||
await this.load();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue