GitHub

daffIdentityReducer

Reducer

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

Parameters

Parameterstate: T
Description
Parameteraction: Action<string>
Description