-
Notifications
You must be signed in to change notification settings - Fork 2
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
✨Feat: search/debounce 등.. #79
Conversation
…IRVANA_Gidong into feat/search/style
…IRVANA_Gidong into feat/search/style
…IRVANA_Gidong into feat/search/style
…IRVANA_Gidong into feat/search/style
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.
나연님도 정말 깔끔한 코드를 짜셨군요... 👍 클린 코드 정말 보기 좋았습니다!
src/apis/user/index.ts
Outdated
const getUser = async (userId: string) => { | ||
const response = await axios.get(`${API_BASE_URL}/users/${userId}`); | ||
const getUser = async (userId: string | User) => { | ||
const response = await axios.get<User>(`${API_BASE_URL}/users/${userId}`); |
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.
p3
const url = `${API_BASE_URL}/users/${userId}`
로 따로 빼내어 사용하는 건 어떻게 생각하실까요?
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.
혜성님의 코드여서 혜성님을 소환하겠습니다! @hyesung99
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.
좋은 방법인것 같아요!
🪄 변경사항
🖥 결과 화면
짜잔!
✏️ PR 포인트