I have the following selector
static orderFilteredByStatus(status: string){
return createSelector([OrderState], (state: OrderStateModel) => {...}
}
Now I have another selector in a different state.
static status(name: string)
return createSelector([DashboardState.settings], (dashboardSettings: DashboardSetting[]) => {...}
}
Now I want to combine both selectors to create a new selector so that the value of the selector status
is passed to the selector ordersFilteredByStatus
. Something like that:
@Selector([OrderState.orderFilteredByStatus(DashboardState.status("fixedName")])
static ordersDashboard(orders: Order[]){...}
Is that possible? I know that you could combine the selectors via switchMap()
but I want a new selector combining both if that is possible. The parameter name
is fixed