GitHub

DaffProductGridReducerState

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

Interface for product grid redux state.

interface DaffProductGridReducerState<T extends DaffProduct = DaffProduct> {
  products: T[]
  loading: boolean
  errors: DaffStateError[]
}

Properties

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.