Skip to content

Commit

Permalink
fix(auth): add suspense for client components (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwansikk committed May 12, 2024
1 parent 8945c9c commit cd3bc95
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/auth/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Suspense } from 'react';

import LoginForm from '@components/LoginForm/LoginForm';
import ServiceInformation from '@components/ServiceInformation/ServiceInformation';
import Footer from '@components/common/Footer/Footer';
Expand All @@ -19,9 +21,13 @@ export default function Home() {
priority
/>
<h1 className="text-2xl font-semibold">로그인</h1>
<ServiceInformation />
<Suspense>
<ServiceInformation />
</Suspense>
</div>
<LoginForm />
<Suspense>
<LoginForm />
</Suspense>
<HelpDesk />
</div>
<Footer />
Expand Down

0 comments on commit cd3bc95

Please sign in to comment.