import { daffCountryEntitiesReducer } from '@daffodil/geography/state'
Reducer function that catches actions and changes/overwrites country entities state.
function daffCountryEntitiesReducer<T extends DaffCountry = DaffCountry>(
state: DaffCountryEntityState<any> = daffCountryEntitiesInitialState
action: DaffGeographyActions<T>
): DaffCountryEntityState<T>
| Parameter | state: DaffCountryEntityState<any> |
|---|---|
| Default | daffCountryEntitiesInitialState |
| Description |
| Parameter | action: DaffGeographyActions<T> |
|---|---|
| Description |