Skip to content

Commit d569bda

Browse files
committed
refactor(ui): simplify onboarding page by removing UserProvider
- Removed UserProvider and server-side data fetching for user data. - Updated OnboardingPage to directly render OnboardingClient, enhancing performance and reducing complexity.
1 parent e9d5760 commit d569bda

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed
Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
1-
import { UserProvider } from "@/components/providers/user-provider";
2-
import { fetchServerData } from "@/lib/server-api";
3-
41
import { OnboardingClient } from "./onboarding-client";
52

6-
import type { User } from "@/lib/types";
7-
8-
// Force dynamic rendering since this page uses server-side data fetching with cookies
3+
// Force dynamic rendering since this page uses client-side data fetching
94
export const dynamic = "force-dynamic";
105

11-
export default async function OnboardingPage() {
12-
const initialUserData = await fetchServerData<{ user: User }>(
13-
"GET",
14-
"/user/me",
15-
);
16-
17-
return (
18-
<UserProvider initialUserData={initialUserData}>
19-
<OnboardingClient />
20-
</UserProvider>
21-
);
6+
export default function OnboardingPage() {
7+
return <OnboardingClient />;
228
}

0 commit comments

Comments
 (0)