Skip to content

Commit 89a883d

Browse files
committed
fix(store): new defineStore syntax
1 parent 44e92de commit 89a883d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/stores/data.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { consola } from 'consola'
22
import { acceptHMRUpdate, defineStore } from 'pinia'
33

4-
export const useDataStore = defineStore({
5-
id: 'data',
4+
export const useDataStore = defineStore('data', {
65

76
state: () => ({
87
appVersion: useRuntimeConfig().public.APP_VERSION,
@@ -19,8 +18,7 @@ export const useDataStore = defineStore({
1918
},
2019
},
2120

22-
},
23-
)
21+
})
2422

2523
if (import.meta.hot)
2624
import.meta.hot.accept(acceptHMRUpdate(useDataStore, import.meta.hot))

0 commit comments

Comments
 (0)