Skip to content

Commit 202b3e3

Browse files
committed
chore: more demo code
1 parent a0cc199 commit 202b3e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/playground/src/stores/demo-counter.ts

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

3+
const delay = (t: number) => new Promise((r) => setTimeout(r, t))
4+
35
export const useCounter = defineStore('counter', {
46
state: () => ({
57
n: 0,

0 commit comments

Comments
 (0)