Evan You 9 ani în urmă
părinte
comite
ed579bb5ed
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      docs/en/actions.md

+ 2 - 0
docs/en/actions.md

@@ -81,6 +81,8 @@ actions: {
 }
 }
 ```
 ```
 
 
+Why don't we just define the actions as simple functions that directly access `vuex.state` and `vuex.dispatch`? The reason is that couples the action functions to the specific vuex instance. By using the thunk syntax, our actions only depend on function arguments and nothing else - this important characteristic makes them easy to test and hot-reloadable!
+
 ### Async Actions
 ### Async Actions
 
 
 We can use the same thunk syntax for defining async actions:
 We can use the same thunk syntax for defining async actions: