Skip to content

Commit

Permalink
refactor: Profile에 Query suspense 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
GC-Park committed Jan 17, 2024
1 parent 174a674 commit a108bac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Home from './pages/Home';
import NotFound from './pages/NotFound';
import RootPage from './pages/RootPage';
import Search from './pages/Search';
import TopicListSkeleton from './components/Skeletons/TopicListSkeleton';

const SelectedTopic = lazy(() => import('./pages/SelectedTopic'));
const NewPin = lazy(() => import('./pages/NewPin'));
Expand Down Expand Up @@ -115,9 +116,9 @@ const routes: routeElement[] = [
{
path: 'my-page',
element: (
<SuspenseComp>
<Suspense fallback={<TopicListSkeleton />}>
<Profile />
</SuspenseComp>
</Suspense>
),
withAuth: true,
},
Expand Down

0 comments on commit a108bac

Please sign in to comment.