From: gohomewho <51456572+ga676005@users.noreply.github.com> Date: Wed, 7 Sep 2022 21:28:33 +0000 (+0800) Subject: docs: update link (#1638) X-Git-Tag: @pinia/nuxt@0.4.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=457c8958758ca002bbb073214e3c779f60916b6f;p=thirdparty%2Fvuejs%2Fpinia.git docs: update link (#1638) one other thing is that `if (!Object.prototype.hasOwnProperty(store.$state, 'hello')) {` shown in the example below the link, I think the 'hello' should be 'secret'? --- diff --git a/packages/docs/core-concepts/plugins.md b/packages/docs/core-concepts/plugins.md index 8594ad84..bd63afd9 100644 --- a/packages/docs/core-concepts/plugins.md +++ b/packages/docs/core-concepts/plugins.md @@ -139,7 +139,7 @@ pinia.use(({ store }) => { Note that state changes or additions that occur within a plugin (that includes calling `store.$patch()`) happen before the store is active and therefore **do not trigger any subscriptions**. :::warning -If you are using **Vue 2**, Pinia is subject to the [same reactivity caveats](https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats) as Vue. You will need to use `Vue.set()` (Vue 2.7) or `set()` (from `@vue/composition-api` for Vue <2.7) for when creating new state properties like `secret` and `hasError`: +If you are using **Vue 2**, Pinia is subject to the [same reactivity caveats](https://v2.vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats) as Vue. You will need to use `Vue.set()` (Vue 2.7) or `set()` (from `@vue/composition-api` for Vue <2.7) for when creating new state properties like `secret` and `hasError`: ```js import { set, toRef } from '@vue/composition-api'