From: Eduardo San Martin Morote Date: Fri, 9 Apr 2021 10:36:49 +0000 (+0200) Subject: docs: naming X-Git-Tag: v2.0.0-alpha.11~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67919a1b357dd04a0c62b65734256ba1ce07e813;p=thirdparty%2Fvuejs%2Fpinia.git docs: naming --- diff --git a/docs/core-concepts/actions.md b/docs/core-concepts/actions.md index 99d3cc03..131af0df 100644 --- a/docs/core-concepts/actions.md +++ b/docs/core-concepts/actions.md @@ -74,7 +74,7 @@ export default { } ``` -## Usage with options API +## Usage with the options API If you are not using the composition API, and you are using `computed`, `methods`, ..., you can use the `mapActions()` helper to map actions properties as methods in your component: diff --git a/docs/core-concepts/getters.md b/docs/core-concepts/getters.md index 6ee811b8..8379df96 100644 --- a/docs/core-concepts/getters.md +++ b/docs/core-concepts/getters.md @@ -94,7 +94,7 @@ export default { } ``` -## Options API +## Usage with the options API You can use the same `mapState()` function used in the [previous section of state](./state.md#options-api) to map to getters: diff --git a/docs/core-concepts/state.md b/docs/core-concepts/state.md index 8fceb128..3b457ca5 100644 --- a/docs/core-concepts/state.md +++ b/docs/core-concepts/state.md @@ -29,7 +29,7 @@ const store = useStore() store.counter++ ``` -### Options API +### Usage with the options API If you are not using the composition API, and you are using `computed`, `methods`, ..., you can use the `mapState()` helper to map state properties as readonly computed properties: