]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: add missing const (#412)
authorDanny Feliz <dannyfeliz08@gmail.com>
Tue, 30 Mar 2021 14:51:22 +0000 (10:51 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 14:51:22 +0000 (16:51 +0200)
docs/core-concepts/index.md

index 7b4390f1a9bb690572897a95234fcdc2b135749d..539b14dfa88a6e88c27542638258559ef79d2963 100644 (file)
@@ -6,7 +6,7 @@ Before diving into core concepts, we need to know that a store is defined using
 import { defineStore } from 'pinia'
 
 // useStore could be anything like useUser, useCart
-export useStore = defineStore({
+export const useStore = defineStore({
   // unique id of the store across your application
   id: 'storeName'
 })