Firebase – Angular + NgRx ::: Wait for 'user' to be loaded before navigating to a path (on page refresh)
When I refresh the page (F5) and the app restarts, the AuthActions.login action is dispatched to set the user property in the (ngrx) store. stateChanged = onAuthStateChanged(getAuth(), (user) => { if (user) { this.store.dispatch(AuthActions.login({ user })); } else { console.log('USER-LOGGED-OUT');…