GitHub

DaffProductGridReducerState

Interface for product grid redux state.

import { DaffProductGridReducerState } from '@daffodil/product/state'
interface DaffProductGridReducerState<T extends DaffProduct = DaffProduct> {
  products: T[]
  loading: boolean
  errors: DaffStateError[]
}

Properties

Name Type Description
products T[]

The array of products that have already been loaded.

loading boolean

Whether a grid of products is loading.

errors DaffStateError[]

Errors associated with loading a grid of products.