GitHub

DaffProductGridMemoizedSelectors

An interface for selectors related to loading a grid of products.

import { DaffProductGridMemoizedSelectors } from '@daffodil/product/state'
interface DaffProductGridMemoizedSelectors<T extends DaffProduct = DaffProduct> {
  selectProductGridState: MemoizedSelector<DaffProductStateRootSlice<T>, DaffProductGridReducerState<T>>
  selectProductGridLoadingState: MemoizedSelector<DaffProductStateRootSlice<T>, boolean>
}

Properties

Name Type Description
selectProductGridState MemoizedSelector<DaffProductStateRootSlice<T>, DaffProductGridReducerState<T>>

Selects the redux state for the product grid feature area. Returns DaffProductGridReducerState.

selectProductGridLoadingState MemoizedSelector<DaffProductStateRootSlice<T>, boolean>

Selects whether any product grid requests are loading.