Skip to content

Commit b82a38a

Browse files
committed
chore: update defineStore usage in playground
1 parent d5bd162 commit b82a38a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/playground/src/stores/cart.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { defineStore } from 'pinia'
22
import { useUserStore } from './user'
33

4-
export const useCartStore = defineStore({
5-
id: 'cart',
4+
export const useCartStore = defineStore('cart', {
65
state: () => ({
76
rawItems: [] as string[],
87
}),

packages/playground/src/stores/jokesUsePromised.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { getRandomJoke, Joke } from '../api/jokes'
33
import { usePromise } from 'vue-promised'
44
import { ref, watch } from 'vue'
55

6-
export const useJokes = defineStore({
7-
id: 'jokes-vue-promised',
8-
6+
export const useJokes = defineStore('jokes-vue-promised', {
97
state: () => {
108
const promise = ref(getRandomJoke())
119

0 commit comments

Comments
 (0)