Use turbo & fix anonymous functions

This commit is contained in:
skidoodle 2022-10-25 19:53:49 +02:00
parent 3d9fde82c8
commit 4d9964623f
9 changed files with 1161 additions and 19 deletions

View file

@ -13,7 +13,7 @@ import profilePic from 'public/profile.webp';
export const fetcher = (url: RequestInfo) => fetch(url).then((r) => r.json());
export default function () {
export default function Main() {
var { data: spotify } = useSWR('/api/spotify', fetcher, {
refreshInterval: 3000,
fallbackData: 'loading',