Skip to content

Commit 6189cc3

Browse files
committed
call the creator, not the action
1 parent b69e9df commit 6189cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/actionCreatorInvariantMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function getMessage(type?: unknown) {
1313
return `Detected an action creator with type "${
1414
type || 'unknown'
1515
}" being dispatched.
16-
Make sure you're calling the action before dispatching, i.e. \`dispatch(actionCreator())\` instead of \`dispatch(actionCreator)\`. This is necessary even if the action has no payload.`
16+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(actionCreator())\` instead of \`dispatch(actionCreator)\`. This is necessary even if the action has no payload.`
1717
}
1818

1919
export function createActionCreatorInvariantMiddleware(

0 commit comments

Comments
 (0)