]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: basic defineStore example follows return value naming rec (#1834)
authorHenry Bley-Vroman <bley.vroman@gmail.com>
Wed, 30 Nov 2022 09:04:28 +0000 (23:04 -1000)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 09:04:28 +0000 (10:04 +0100)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
packages/docs/core-concepts/index.md

index 01edef3f18d3e0c68be611f5856b9adf410a40c7..41b7b62a49fce7d21261c0d00dc6f3826beec569 100644 (file)
@@ -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...
 })
 ```