use client for fetch data
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 5m51s
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 5m51s
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { fetchLeaderboard } from '@/lib/api';
|
||||
import { defaultAppData } from '@/lib/defaultData';
|
||||
import ClientPage from './ClientPage';
|
||||
"use client";
|
||||
|
||||
import { fetchLeaderboard } from "@/lib/api";
|
||||
import { defaultAppData } from "@/lib/defaultData";
|
||||
import ClientPage from "./ClientPage";
|
||||
|
||||
export default async function Page() {
|
||||
const leaderboardData = await fetchLeaderboard();
|
||||
|
||||
Reference in New Issue
Block a user