Reselect - selector that invokes another selector?

前端 未结 4 955
醉酒成梦
醉酒成梦 2021-02-05 07:14

I have a selector:

const someSelector = createSelector(
   getUserIdsSelector,
   (ids) => ids.map((id) => yetAnotherSelector(store, id),
);                        


        
4条回答
  •  醉梦人生
    2021-02-05 07:50

    Recompute is an alternative to reselect that implements dynamic dependency tracking and allows any number of arguments to be passed to the selector, you could check if this would solve your problem

提交回复
热议问题