-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] router 리팩터링 #806
[FE] router 리팩터링 #806
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~
/** 로그인이 안되었다면 로그인 페이지로 리다이렉트하면서 헤더만 있는 레이아웃 */ | ||
{ | ||
path: '/', | ||
element: ( | ||
<AuthLayout> | ||
<App layout="headerOnly" /> | ||
</AuthLayout> | ||
), | ||
errorElement: <Navigate to={PATH.LOGIN} replace />, | ||
children: [ | ||
{ | ||
path: `${PATH.RECIPE}/:recipeId`, | ||
async lazy() { | ||
const { RecipeDetailPage } = await import( | ||
/* webpackChunkName: "RecipeDetailPage" */ '@/pages/RecipeDetailPage' | ||
); | ||
return { Component: RecipeDetailPage }; | ||
}, | ||
}, | ||
], | ||
}, | ||
/** 헤더와 네비게이션 바가 있는 기본 레이아웃 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깜빡~
Issue
✨ 구현한 기능
📢 논의하고 싶은 내용
x
🎸 기타
x
⏰ 일정