GitHub

daffRouterStateNavigatedClearEntityErrorsReducerFactory

Creates a reducer that will clear all contextual errors from entities in state when ROUTER_NAVIGATED is dispatched.

import { daffRouterStateNavigatedClearEntityErrorsReducerFactory } from '@daffodil/core/routing'
function daffRouterStateNavigatedClearEntityErrorsReducerFactory<T extends DaffErrorable = DaffErrorable>(adapter: EntityAdapter<T> = createEntityAdapter<T>())