GitHub

daffCountryEntitiesReducer

Reducer function that catches actions and changes/overwrites country entities state.

import { daffCountryEntitiesReducer } from '@daffodil/geography/state'
function daffCountryEntitiesReducer<T extends DaffCountry = DaffCountry>(
  state: DaffCountryEntityState<any> = daffCountryEntitiesInitialState
  action: DaffGeographyActions<T>
): DaffCountryEntityState<T>