Skip to content

Commit d067287

Browse files
dobbsryanyyx990803
authored andcommitted
Update actions.md (#209)
1 parent 23e557b commit d067287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const login = ({dispatch}, username, password) => {
174174

175175
```
176176

177-
While calling actions from one another module, or while calling another action in the same module, remember that actions take a store instance as its first argument, so the action called inside another action should be passed through the first argument for the caller.
177+
While calling actions from another module, or while calling another action in the same module, remember that actions take a store instance as its first argument, so the action called inside another action should be passed through the first argument for the caller.
178178

179179
If you write the action with ES6 destructuring style, make sure that the first argument of the caller action covers all the properties and methods of both actions. For example, only *dispatch* is used in the caller action and *state*, *watch* are used in the called action, all the *dispatch*, *state* and *watch* should be presented in the caller first formal argument like this:
180180

0 commit comments

Comments
 (0)