Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public ngOnInit(): void {
this.hub = getRegisteredUnits();
this.isVisible = new BehaviorSubject(true);
this.unsubscribe$ = new Subject();
this.store
.select(fromStore.getUser)
.pipe(takeUntil(this.unsubscribe$))
.subscribe((user: User) => (this.user = user));
}