We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e92de commit 89a883dCopy full SHA for 89a883d
app/stores/data.ts
@@ -1,8 +1,7 @@
1
import { consola } from 'consola'
2
import { acceptHMRUpdate, defineStore } from 'pinia'
3
4
-export const useDataStore = defineStore({
5
- id: 'data',
+export const useDataStore = defineStore('data', {
6
7
state: () => ({
8
appVersion: useRuntimeConfig().public.APP_VERSION,
@@ -19,8 +18,7 @@ export const useDataStore = defineStore({
19
18
},
20
21
22
-},
23
-)
+})
24
25
if (import.meta.hot)
26
import.meta.hot.accept(acceptHMRUpdate(useDataStore, import.meta.hot))
0 commit comments