We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc0613 commit 5269291Copy full SHA for 5269291
game/src/components/game.tsx
@@ -12,13 +12,14 @@ import {
12
StorageKey,
13
} from "@/rpc/storage";
14
import { useEffect, useRef } from "react";
15
-import { mutate } from "swr";
+import { useSWRConfig } from "swr";
16
import { PAST_GAME_KEY } from "./past-games/past-games";
17
18
const NAV_WIDTH = 80;
19
const LOOP_INTERVAL = 1000;
20
export const Game = () => {
21
const { submit } = useAction();
22
+ const { mutate } = useSWRConfig();
23
const tickRecorder = useRef<TickRecorder>();
24
const isStarting = useRef<boolean>(false);
25
const isEnding = useRef<boolean>(false);
0 commit comments