From: Danny Feliz Date: Tue, 30 Mar 2021 14:51:22 +0000 (-0400) Subject: docs: add missing const (#412) X-Git-Tag: v2.0.0-alpha.9~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=088b505eb08586ec4b4f06a4feceaeb8b74a543d;p=thirdparty%2Fvuejs%2Fpinia.git docs: add missing const (#412) --- diff --git a/docs/core-concepts/index.md b/docs/core-concepts/index.md index 7b4390f1..539b14df 100644 --- a/docs/core-concepts/index.md +++ b/docs/core-concepts/index.md @@ -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' })