DaffCustomerAddressSelectors
Selectors for the main part of customer state.
import { DaffCustomerAddressSelectors } from '@daffodil/customer/state'
interface DaffCustomerAddressSelectors<T extends DaffCustomerAddress = DaffCustomerAddress> {
selectAddress: (id: T['id']) => MemoizedSelector<DaffCustomerStateRootSlice<DaffCustomer, T>, T>
selectAddresses: MemoizedSelector<DaffCustomerStateRootSlice<DaffCustomer, T>, T[]>
}
Properties
Name | Type | Description |
---|---|---|
selectAddress | (id: T['id']) => MemoizedSelector<DaffCustomerStateRootSlice<DaffCustomer, T>, T> | Selects the customer. |
selectAddresses | MemoizedSelector<DaffCustomerStateRootSlice<DaffCustomer, T>, T[]> |