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

Function actionCreator

test/bindActionCreators.spec.ts:36–38  ·  view source on GitHub ↗
(this: any)

Source from the content-addressed store, hash-verified

34 const uniqueThis = {}
35 const argArray = [1, 2, 3]
36 function actionCreator(this: any) {
37 return { type: 'UNKNOWN_ACTION', this: this, args: [...arguments] }
38 }
39 const boundActionCreator = bindActionCreators(actionCreator, store.dispatch)
40
41 const boundAction = boundActionCreator.apply(uniqueThis, argArray as [])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected