From: Casey McLaughlin Date: Mon, 6 Jun 2022 21:35:11 +0000 (-0400) Subject: docs: clarify language in actions documentation (#1345) X-Git-Tag: @pinia/nuxt@0.2.0~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7f2469f0e1fdfef935ea23b4441cb4f53892a51;p=thirdparty%2Fvuejs%2Fpinia.git docs: clarify language in actions documentation (#1345) Co-authored-by: Eduardo San Martin Morote --- diff --git a/packages/docs/core-concepts/actions.md b/packages/docs/core-concepts/actions.md index 7b5a6426..37c64703 100644 --- a/packages/docs/core-concepts/actions.md +++ b/packages/docs/core-concepts/actions.md @@ -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'