diff --git a/src/components/player/player-data.tsx b/src/components/player/player-data.tsx index c508739..37ec510 100644 --- a/src/components/player/player-data.tsx +++ b/src/components/player/player-data.tsx @@ -13,8 +13,6 @@ import Card from "@/components/card"; import PlayerBadges from "@/components/player/player-badges"; import { useIsMobile } from "@/hooks/use-is-mobile"; -const REFRESH_INTERVAL = 5 * 60 * 1000; // 5 minutes - type Props = { initialPlayerData: ScoreSaberPlayer; initialScoreData?: ScoreSaberPlayerScoresPageToken; @@ -36,7 +34,6 @@ export default function PlayerData({ const { data, isLoading, isError } = useQuery({ queryKey: ["player", player.id], queryFn: () => scoresaberService.lookupPlayer(player.id), - refetchInterval: REFRESH_INTERVAL, }); if (data && (!isLoading || !isError)) { diff --git a/src/components/ranking/mini.tsx b/src/components/ranking/mini.tsx index ebda7e1..5a0f639 100644 --- a/src/components/ranking/mini.tsx +++ b/src/components/ranking/mini.tsx @@ -11,7 +11,6 @@ import { Avatar, AvatarImage } from "../ui/avatar"; import ScoreSaberPlayer from "@/common/model/player/impl/scoresaber-player"; import { scoresaberService } from "@/common/service/impl/scoresaber"; -const REFRESH_INTERVAL = 5 * 60 * 1000; // 5 minutes const PLAYER_NAME_MAX_LENGTH = 18; type MiniProps = { @@ -91,7 +90,6 @@ export default function Mini({ type, player }: MiniProps) { return players; }, - refetchInterval: REFRESH_INTERVAL, }); let players = data; // So we can update it later