mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 04:25:42 +00:00
revert cache workaround
This commit is contained in:
parent
c40329806e
commit
40bd67b725
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user