Skip to content

Commit

Permalink
Merge pull request #8 from SeolJaeHyeok/feature/main-page-3
Browse files Browse the repository at this point in the history
fix: 불필요한 suspense 제거
  • Loading branch information
SeolJaeHyeok authored Oct 4, 2023
2 parents ace9f1a + ce905a8 commit 64eacce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
16 changes: 3 additions & 13 deletions apps/client/components/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,10 @@ export default function HomeComponent(): TReturnComponent {
<div className="row">
<div className="col-md-9">
<ErrorBoundary fallback={<div>Feed Error</div>}>
<Suspense fallback={<div>Feed Loading ...</div>}>
<FeedToggle />
</Suspense>
<FeedToggle />
</ErrorBoundary>
<ErrorBoundary fallback={<div>articleList Error</div>}>
<Suspense
fallback={<div>articleList Loading ...</div>}
>
<ArticleList
articleListData={articleListData}
/>
</Suspense>
<ArticleList articleListData={articleListData} />
</ErrorBoundary>
{totalCnt > 0 && (
<Pagination
Expand All @@ -75,9 +67,7 @@ export default function HomeComponent(): TReturnComponent {
</div>
<div className="col-md-3">
<ErrorBoundary fallback={<div>tag Error</div>}>
<Suspense fallback={<div>tag loading...</div>}>
<TagList />
</Suspense>
<TagList />
</ErrorBoundary>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions apps/client/components/home/tag-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useQuery } from '@tanstack/react-query';
import { tagKeys } from 'config/react-query/query-key-factory';
import request from 'graphql-request';
import Link from 'next/link';
import { useEffect } from 'react';

export default function TagList() {
const { data } = useQuery({
Expand Down

0 comments on commit 64eacce

Please sign in to comment.