Skip to content

Commit 6f67455

Browse files
committed
refactor(stores): remove Pinia HMR hooks
1 parent 2a446fc commit 6f67455

4 files changed

Lines changed: 0 additions & 13 deletions

File tree

storage/framework/defaults/stores/git.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const token = ''
99

1010
declare const defineStore: any
1111
declare const useHttpFetch: any
12-
declare const acceptHMRUpdate: any
1312

1413
export const useGitStore = defineStore('git', {
1514
state: (): any => {
@@ -70,6 +69,3 @@ export const useGitStore = defineStore('git', {
7069
},
7170
},
7271
})
73-
74-
if (import.meta.hot)
75-
import.meta.hot.accept(acceptHMRUpdate(useGitStore, import.meta.hot))

storage/framework/defaults/stores/payment.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,3 @@ export const usePaymentStore = defineStore('payment', () => {
472472

473473
}
474474
})
475-
476-
if (import.meta.hot)
477-
import.meta.hot.accept(acceptHMRUpdate(usePaymentStore, import.meta.hot))

storage/framework/defaults/stores/queue.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,3 @@ export const useQueueStore = defineStore('queue', () => {
4141
fetchQueues,
4242
}
4343
})
44-
45-
if (import.meta.hot)
46-
import.meta.hot.accept(acceptHMRUpdate(useQueueStore, import.meta.hot))

storage/framework/defaults/stores/user.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,3 @@ export const useUserStore = defineStore('user', () => {
2727
savedName,
2828
}
2929
})
30-
31-
if (import.meta.hot)
32-
import.meta.hot.accept(acceptHMRUpdate(useUserStore as any, import.meta.hot))

0 commit comments

Comments
 (0)