GitHub

DaffBestSellersMemoizedSelectors

import { DaffBestSellersMemoizedSelectors } from '@daffodil/product/state'

An interface for the available best sellers selectors.

interface DaffBestSellersMemoizedSelectors<T extends DaffProduct = DaffProduct> {
  selectBestSellersState: MemoizedSelector<DaffProductStateRootSlice<T>, DaffBestSellersReducerState, DefaultProjectorFn<DaffBestSellersReducerState>>
  selectBestSellersLoadingState: MemoizedSelector<DaffProductStateRootSlice<T>, boolean, DefaultProjectorFn<boolean>>
  selectBestSellersIdsState: MemoizedSelector<DaffProductStateRootSlice<T>, T["id"][], DefaultProjectorFn<T["id"][]>>
  selectBestSellersProducts: MemoizedSelector<DaffProductStateRootSlice<T>, T[], DefaultProjectorFn<T[]>>
}

Properties

selectBestSellersState
MemoizedSelector<DaffProductStateRootSlice<T>, DaffBestSellersReducerState, DefaultProjectorFn<DaffBestSellersReducerState>>

Selector for best sellers feature state

selectBestSellersLoadingState
MemoizedSelector<DaffProductStateRootSlice<T>, boolean, DefaultProjectorFn<boolean>>

Selector for the loading state of best selling products.

selectBestSellersIdsState
MemoizedSelector<DaffProductStateRootSlice<T>, T["id"][], DefaultProjectorFn<T["id"][]>>

Selector for the IDs of best selling products.

selectBestSellersProducts
MemoizedSelector<DaffProductStateRootSlice<T>, T[], DefaultProjectorFn<T[]>>

Selector for the best selling products.