From: Stéphane Bisinger Date: Wed, 1 Jun 2022 15:42:48 +0000 (+0200) Subject: docs: update link to Vue 2 documentation (#1330) X-Git-Tag: @pinia/nuxt@0.2.0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c16a9b95c063b3486e224901d98a68fc5c1ad436;p=thirdparty%2Fvuejs%2Fpinia.git docs: update link to Vue 2 documentation (#1330) Use the correct subdomain to link to the Vue 2 documentation. Since the switch to Vue 3 as the default Vue version, to access the Vue 2 documentation the `https://v2.vuejs.org` subdomain must be used. --- diff --git a/packages/docs/core-concepts/state.md b/packages/docs/core-concepts/state.md index 8d4fef21..db47b014 100644 --- a/packages/docs/core-concepts/state.md +++ b/packages/docs/core-concepts/state.md @@ -24,7 +24,7 @@ const useStore = defineStore('storeId', { ``` :::tip -If you are using Vue 2, the data you create in `state` follows the same rules as the `data` in a Vue instance, ie the state object must be plain and you need to call `Vue.set()` when **adding new** properties to it. **See also: [Vue#data](https://vuejs.org/v2/api/#data)**. +If you are using Vue 2, the data you create in `state` follows the same rules as the `data` in a Vue instance, ie the state object must be plain and you need to call `Vue.set()` when **adding new** properties to it. **See also: [Vue#data](https://v2.vuejs.org/v2/api/#data)**. ::: ## Accessing the `state`