diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:32:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:39:25 +0900 |
| commit | c889a9ad33374eae03cec5b0358d79016d6fd97e (patch) | |
| tree | 852a080bc1b0e68e5f46f8bca0ff787aafd314e1 /frontend/app/routes | |
| parent | 8dbdf96e674c1e26d7c98af8d0608f30bc1bf166 (diff) | |
| download | phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.tar.gz phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.tar.zst phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.zip | |
show ranking
Diffstat (limited to 'frontend/app/routes')
| -rw-r--r-- | frontend/app/routes/golf.$gameId.watch.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/app/routes/golf.$gameId.watch.tsx b/frontend/app/routes/golf.$gameId.watch.tsx index 0c07633..fed06aa 100644 --- a/frontend/app/routes/golf.$gameId.watch.tsx +++ b/frontend/app/routes/golf.$gameId.watch.tsx @@ -10,11 +10,11 @@ import { } from "../api/client"; import GolfWatchApp from "../components/GolfWatchApp"; import { + rankingAtom, setCurrentTimestampAtom, setDurationSecondsAtom, setGameStartedAtAtom, setLatestGameStatesAtom, - setRankingAtom, } from "../states/watch"; export const meta: MetaFunction<typeof loader> = ({ data }) => [ @@ -59,10 +59,10 @@ export default function GolfWatch() { useLoaderData<typeof loader>(); useHydrateAtoms([ + [rankingAtom, ranking], [setCurrentTimestampAtom, undefined], [setDurationSecondsAtom, game.duration_seconds], [setGameStartedAtAtom, game.started_at ?? null], - [setRankingAtom, ranking], [setLatestGameStatesAtom, gameStates], ]); |
