Skip to content

Commit 36f8a4b

Browse files
committed
chore: update playground to demonstrate plugin works
1 parent a11b51f commit 36f8a4b

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

packages/nuxt/playground/stores/counter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,3 @@ export const useCounter = defineStore('counter', {
2020
getCount: (state) => state.count,
2121
},
2222
})
23-
24-
if (import.meta.hot) {
25-
import.meta.hot.accept(acceptHMRUpdate(useCounter, import.meta.hot))
26-
}

packages/nuxt/playground/stores/nested/some-store.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ export const useSomeStoreStore = defineStore('some-store', () => {
22
console.log('I was defined within a nested store directory')
33
return {}
44
})
5-
6-
if (import.meta.hot) {
7-
import.meta.hot.accept(acceptHMRUpdate(useSomeStoreStore, import.meta.hot))
8-
}

packages/nuxt/playground/stores/with-skip-hydrate.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,3 @@ export const useWithSkipHydrateStore = defineStore('with-skip-hydrate', () => {
88
)
99
return { skipped }
1010
})
11-
12-
if (import.meta.hot) {
13-
import.meta.hot.accept(
14-
acceptHMRUpdate(useWithSkipHydrateStore, import.meta.hot)
15-
)
16-
}

0 commit comments

Comments
 (0)