revert cache workaround

This commit is contained in:
Ryan Freeman 2024-08-17 23:21:51 +01:00
parent c40329806e
commit 40bd67b725

View File

@ -110,8 +110,7 @@ type PlayerStateResponse = {
}
function usePlayerState(path: string) {
const timestamp = Date.parse(new Date().toString())
const {data, error, isLoading} = useSWR(`/api/spotify/${path}?ts=${timestamp}`, fetcher) as PlayerStateResponse
const {data, error, isLoading} = useSWR(`/api/spotify/${path}`, fetcher) as PlayerStateResponse
return {
song: data,