From: Henry Bley-Vroman Date: Wed, 30 Nov 2022 09:04:28 +0000 (-1000) Subject: docs: basic defineStore example follows return value naming rec (#1834) X-Git-Tag: pinia@2.0.28~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d2d987f3e62e6b6ec52df2e640a14ef52fe1e43;p=thirdparty%2Fvuejs%2Fpinia.git docs: basic defineStore example follows return value naming rec (#1834) Co-authored-by: Eduardo San Martin Morote --- diff --git a/packages/docs/core-concepts/index.md b/packages/docs/core-concepts/index.md index 01edef3f..41b7b62a 100644 --- a/packages/docs/core-concepts/index.md +++ b/packages/docs/core-concepts/index.md @@ -14,7 +14,7 @@ import { defineStore } from 'pinia' // but it's best to use the name of the store and surround it with `use` // and `Store` (e.g. `useUserStore`, `useCartStore`, `useProductStore`) // the first argument is a unique id of the store across your application -export const useStore = defineStore('main', { +export const useAlertsStore = defineStore('alerts', { // other options... }) ```