import { daffIdentityReducer } from '@daffodil/core/state'
A simple reducer that simply returns the passed state. This is useful for stubbing out parts of state that are not covered in an injected extra reducer map.
function daffIdentityReducer<T = unknown>(
state: T
action: Action<string>
): T
| Parameter | state: T |
|---|---|
| Description |
| Parameter | action: Action<string> |
|---|---|
| Description |