From 460d9b21d10cfa7019e894e601564373ac815d48 Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Mon, 11 Sep 2023 19:53:47 +0100 Subject: [PATCH] Update SpotifyPlayer.tsx --- components/ui/SpotifyPlayer.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/ui/SpotifyPlayer.tsx b/components/ui/SpotifyPlayer.tsx index f4b932a..63b69f5 100644 --- a/components/ui/SpotifyPlayer.tsx +++ b/components/ui/SpotifyPlayer.tsx @@ -110,13 +110,7 @@ type PlayerStateResponse = { } function usePlayerState(path: string) { - const {data, error, isLoading} = useSWR(`/api/spotify/${path}`, fetcher, { - refreshInterval: 3600, - revalidateIfStale: true, - revalidateOnMount: true, - revalidateOnFocus: true, - revalidateOnReconnect: true - }) as PlayerStateResponse + const {data, error, isLoading} = useSWR(`/api/spotify/${path}`, fetcher) as PlayerStateResponse return { song: data,