Skip to content

Commit 8d2d987

Browse files
oletsposva
andauthored
docs: basic defineStore example follows return value naming rec (#1834)
Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent fa9312e commit 8d2d987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/core-concepts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { defineStore } from 'pinia'
1414
// but it's best to use the name of the store and surround it with `use`
1515
// and `Store` (e.g. `useUserStore`, `useCartStore`, `useProductStore`)
1616
// the first argument is a unique id of the store across your application
17-
export const useStore = defineStore('main', {
17+
export const useAlertsStore = defineStore('alerts', {
1818
// other options...
1919
})
2020
```

0 commit comments

Comments
 (0)