-
Notifications
You must be signed in to change notification settings - Fork 3
feature: 클래스 리스트 페이지 기능 구현 (API MOCK) #59
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
Conversation
…o feat/class-card-list
…o refactor/class-card-fsd
- nextjs 의 pages 폴더는 route 방식으로 동작해서 fsd 의 pages layer 와 충돌나서 발생한 이슈
…o feat/class-list-api-mock
…o feat/class-list-api-mock
- useSearchParams 를 사용하는 곳에서는 Suspense 를 사용해야해서 수정
|
||
const [localSearchValue, setLocalSearchValue] = useState(''); | ||
|
||
const sortType = (searchParams.get('sortType') as SortType) ?? 'popular'; |
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.
런타임에서 문자열을 얻는건데 요렇게 as 로 타이핑해도 될까유?
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.
음.. 타입 좁힐려고 + 탭으로 제어한다고 생각했는데, 유저가 URL 을 직접 변경하면 런타임중에 타입이 유효하지 않은데 유효하다고 인식하겠네요.
그래서 타입 단언 부분 제거했습니다.
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.
👍
작업
구현 UI
Screen.Capture.from.Scre.io.webm