Skip to content

Commit

Permalink
fix: prefetch 부분 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
sxungchxn committed Jul 22, 2023
1 parent 4a87ae0 commit 49f7dc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/app/board/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { notFound } from 'next/navigation';
import { Header } from '@/components/server';
import { Suspense } from '@suspensive/react';
import { Content, HydratedBoardDetail, BoardDetailLoading } from '@/app/board/components';
import { Content, BoardDetail, BoardDetailLoading } from '@/app/board/components';

const BoardDetailPage = async ({
params: { id },
Expand All @@ -18,7 +18,7 @@ const BoardDetailPage = async ({
<Header />
<Content verticalCenter={false}>
<Suspense fallback={<BoardDetailLoading />}>
<HydratedBoardDetail boardId={boardId} />
<BoardDetail />
</Suspense>
</Content>
</>
Expand Down
9 changes: 2 additions & 7 deletions src/app/home/components/BoardSection/BoardSection.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import clsx from 'clsx';
import { Suspense } from '@suspensive/react';
import { SvgIcon, Typography } from '@/components';
import {
HydratedBoardCardList,
BoardCardListLoading,
RegionsFilter,
RegionsFilterLoading,
} from '@/app/home/components';
import { BoardCardListLoading, RegionsFilter, RegionsFilterLoading, BoardCardList } from '@/app/home/components';
import { animate } from '@/styles/theme.css';
import { section, title } from './BoardSection.css';

Expand All @@ -20,7 +15,7 @@ const BoardSection = async () => {
<RegionsFilter />
</Suspense>
<Suspense fallback={<BoardCardListLoading />}>
<HydratedBoardCardList />
<BoardCardList />
</Suspense>
</section>
);
Expand Down

0 comments on commit 49f7dc6

Please sign in to comment.