Skip to content

Commit

Permalink
fix: hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungjjeong committed Nov 25, 2024
1 parent 5d8c994 commit c38462e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/features/Main/sections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export * from './MainReasonSection';
export * from './MainRecruitSection';
export * from './MainResultSection';
export * from './MainScheduleSection';
export * from './MainSubscribeSection';
export * from './MainSupportSection';
14 changes: 11 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
import dynamic from 'next/dynamic';

import { SEO } from '~/components/SEO';
import {
MainBlogSection,
MainIntroSection,
MainProjectSection,
MainReasonSection,
MainRecruitSection,
MainResultSection,
MainScheduleSection,
MainSubscribeSection,
MainSupportSection,
} from '~/features/Main/sections';
import { MainSubscribeSection } from '~/features/Main/sections/MainSubscribeSection';

const DynamicMainProjectSection = dynamic(
() => import('~/features/Main/sections').then(({ MainProjectSection }) => MainProjectSection),
{
ssr: false,
}
);

export default function Root() {
return (
Expand All @@ -20,7 +28,7 @@ export default function Root() {
<MainResultSection />
<MainReasonSection />
<MainScheduleSection />
<MainProjectSection />
<DynamicMainProjectSection />
<MainSupportSection />
<MainRecruitSection />
<MainBlogSection />
Expand Down

0 comments on commit c38462e

Please sign in to comment.