]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: clarify language in actions documentation (#1345)
authorCasey McLaughlin <caseyamcl@gmail.com>
Mon, 6 Jun 2022 21:35:11 +0000 (17:35 -0400)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 21:35:11 +0000 (23:35 +0200)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/docs/core-concepts/actions.md

index 7b5a6426324e21b038d84eac50aa44ebc7747345..37c647036757bcf5c5c428aba0bec26390965d1b 100644 (file)
@@ -23,7 +23,7 @@ export const useStore = defineStore('main', {
 })
 ```
 
-Like [getters](./getters.md), actions get access to the _whole store instance_ through `this` with **full typing (and autocompletion ✨) support**. **Unlike them, `actions` can be asynchronous**, you can `await` inside of them any API call or even other actions! Here is an example using [Mande](https://github.com/posva/mande). Note the library you use doesn't matter as long as you get a `Promise`, you could even use the native `fetch` function (browser only):
+Like [getters](./getters.md), actions get access to the _whole store instance_ through `this` with **full typing (and autocompletion ✨) support**. **Unlike getters, `actions` can be asynchronous**, you can `await` inside of actions any API call or even other actions! Here is an example using [Mande](https://github.com/posva/mande). Note the library you use doesn't matter as long as you get a `Promise`, you could even use the native `fetch` function (browser only):
 
 ```js
 import { mande } from 'mande'