MCPcopy
hub / github.com/reduxjs/redux / reducer

Function reducer

test/typescript/store.ts:30–42  ·  view source on GitHub ↗
(
  state: State | undefined = {
    a: 'a',
    b: {
      c: 'c',
      d: 'd'
    },
    e: brandedString
  },
  action: Action
)

Source from the content-addressed store, hash-verified

28}
29
30const reducer: Reducer<State> = (
31 state: State | undefined = {
32 a: 'a',
33 b: {
34 c: 'c',
35 d: 'd'
36 },
37 e: brandedString
38 },
39 action: Action
40): State => {
41 return state
42}
43
44const reducerWithAction: Reducer<State, DerivedAction> = (
45 state: State | undefined = {

Callers 3

wrapReducerFunction · 0.70
wrappedReducerFunction · 0.70
persistReducerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected