Skip to content

Commit 87101e1

Browse files
committed
not store state in localstorage
1 parent 6defb95 commit 87101e1

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

rr/app/lib/store.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,10 @@ interface GameState {
1010
tehai: Hai[];
1111
}
1212

13-
const useGameState = create<GameState>()(
14-
persist(
15-
(set) => ({
16-
kyoku: 1,
17-
junme: 1,
18-
haiyama: [],
19-
sutehai: [],
20-
tehai: [],
21-
}),
22-
{
23-
name: "game-state-storage",
24-
},
25-
),
26-
);
13+
const useGameState = create<GameState>()((set) => ({
14+
kyoku: 1,
15+
junme: 1,
16+
haiyama: [],
17+
sutehai: [],
18+
tehai: [],
19+
}));

0 commit comments

Comments
 (0)