Skip to content

Commit

Permalink
refactor: SkeletonWrapper를 이용하여 0.3초 미만에는 스켈레톤 보이지 않도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Jul 20, 2023
1 parent 21248d0 commit af65c2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/LikePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Header from '@/common-ui/Header/Header';
import { Suspense } from 'react';
import BookmarkLikeList from '@/bookmarks/ui/Like/BookmarkLikeList';
import SkeletonBookmarkLikeList from '@/bookmarks/ui/Like/SkeletonBookmarkLikeList';
import SkeletonWrapper from '@/common-ui/SkeletonWrapper';

const LikePage = () => {
const showBackButton = true;
Expand All @@ -14,7 +15,13 @@ const LikePage = () => {
<Layout>
<Header title={title} showBackButton={showBackButton} />
<LBody>
<Suspense fallback={<SkeletonBookmarkLikeList />}>
<Suspense
fallback={
<SkeletonWrapper>
<SkeletonBookmarkLikeList />
</SkeletonWrapper>
}
>
<BookmarkLikeList />
</Suspense>
</LBody>
Expand Down

1 comment on commit af65c2b

@vercel
Copy link

@vercel vercel bot commented on af65c2b Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.