Skip to content

Commit 1e818ab

Browse files
rename actionHandler (#130)
1 parent 5910917 commit 1e818ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/createAction.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function createAction(type, payloadCreator, metaCreator) {
55
? payloadCreator
66
: identity;
77

8-
const actionHandler = (...args) => {
8+
const actionCreator = (...args) => {
99
const hasError = args[0] instanceof Error;
1010

1111
const action = {
@@ -29,7 +29,7 @@ export default function createAction(type, payloadCreator, metaCreator) {
2929
return action;
3030
};
3131

32-
actionHandler.toString = () => type.toString();
32+
actionCreator.toString = () => type.toString();
3333

34-
return actionHandler;
34+
return actionCreator;
3535
}

0 commit comments

Comments
 (0)