import { daffRouterStateNavigatedClearEntityErrorsReducerFactory } from '@daffodil/core/routing'
Creates a reducer that will clear all contextual errors from entities in state when ROUTER_NAVIGATED
is dispatched.
function daffRouterStateNavigatedClearEntityErrorsReducerFactory<T extends DaffErrorable = DaffErrorable>(adapter: EntityAdapter<T> = createEntityAdapter<T>()): (state: EntityState<T>, action: RouterAction<unknown, SerializedRouterStateSnapshot>) => EntityState<T>