admin管理员组

文章数量:1312697

I've got a parametrized selector like this

mySelector = (myId: number) => createSelector(selectList, list => list.find(item => item.id = myId);

and I need to use it in an effect, like this

myEffect$ = createEffect(
  () => {
   this.actions$.pipe( 
    ofType(myAction),
    withLatestFrom(this.store.select(mySelector(myAction.ItemId)),
    // 

本文标签: angularHow can I use withLatestFrom with a parametrized selectorStack Overflow