Primary API Functions
Const createCompoundSelector
- createCompoundSelector<S, B, A1, AN>(selectors: [Selector<S, A1>, ...LiftToSelector<S, AN>[]], fn: (...selectorResults: [A1, ...SelectorResults<LiftToSelector<S, AN>>[]]) => B, memoize?: Memoize): Selector<S, B>
-
Type parameters
Parameters
-
selectors: [Selector<S, A1>, ...LiftToSelector<S, AN>[]]
-
fn: (...selectorResults: [A1, ...SelectorResults<LiftToSelector<S, AN>>[]]) => B
-
- (...selectorResults: [A1, ...SelectorResults<LiftToSelector<S, AN>>[]]): B
-
Parameters
-
Rest ...selectorResults: [A1, ...SelectorResults<LiftToSelector<S, AN>>[]]
Returns B
-
memoize: Memoize = ...
Const createSelector
-
Type parameters
Parameters
-
fn: (s: S) => A
-
memoize: Memoize = ...
Create a selector from numerous other selectors. Advised to use type inference over supplying these types.