I'm wondering how I dispatch multiply actions in order in my effect.
@Effect()
getClients$: Observable<Action> = this.actions$
.ofType(ClientActions.GET_CLIENTS)
.withLatestFrom(this.store.select(fromRoot.getClients))
.filter(([action, clients]) => clients.length === 0)
.map(action => new LayoutActions.IsLoading(true))
.switchMap(() => this.clientService.getClients())
.map(clients => new ClientActions.GetClientsReceived(clients));
In the above example the first action is not dispatched. The getClients() method and last action are working correctly.