From: Hussain Panahy <144150970+HP8585@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:01:39 +0000 (+0330) Subject: docs: imports missing (#2636) X-Git-Tag: @pinia/nuxt@0.5.2-beta.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b61d9efaf762580932f2735b7d0381eff7b36128;p=thirdparty%2Fvuejs%2Fpinia.git docs: imports missing (#2636) * Update index.md hey brother, you forgot to import define store from pinia and also computed from vue, with all due respect, apologize for the yesterday I just wanna help to make the pinia package perfect and seamless !! * Update packages/docs/core-concepts/index.md [skip ci] * Update packages/docs/core-concepts/index.md [skip ci] * Update packages/docs/core-concepts/index.md [skip ci] --------- Co-authored-by: Eduardo San Martin Morote --- diff --git a/packages/docs/core-concepts/index.md b/packages/docs/core-concepts/index.md index d414568e..01d458cc 100644 --- a/packages/docs/core-concepts/index.md +++ b/packages/docs/core-concepts/index.md @@ -77,6 +77,7 @@ Setup stores are also able to rely on globally _provided_ properties like the Ro ```ts import { inject } from 'vue' import { useRoute } from 'vue-router' +import { defineStore } from 'pinia' export const useSearchFilters = defineStore('search-filters', () => { const route = useRoute() @@ -125,6 +126,8 @@ Note that `store` is an object wrapped with `reactive`, meaning there is no need ```vue