return this.auth.user.pipe(
switchMap((user: IUser) => {
return of(true);
})
);
My initial code was a bit more complex with some cases depending on the user data, but for testing purposes I've used the code above in a guard's canLoad and it does not activate.
There's TS/compilation errors whatsoever.
I've tried it both with Ivy and without.
I'm using Angular 8.3;