-
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] feat: 상품 검색 자동완성 쿼리 추가 #447
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.
수고하셨어요 리뷰 확인해주세요~
|
||
return data; | ||
}; | ||
|
||
const useInfiniteSearchedProductsQuery = (query: string) => { | ||
const useInfiniteProductSearchResultsQuery = (query: string) => { |
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.
위 아래 다른 파일인 것 같은데 왜 hook 이름이 같죠..?
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.
그리고 이거 자동완성 해주는 hook이면 이름에 autocomplete 이런거 들어가면 좋을 것 같아요..아니면 results랑 똑같이 네이밍을 해서 useInfiniteProductSearchResultQuery, useInifniteProductSearchQuery 이런식으로..? 이름이 너무 헷갈려요
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.
네이밍 어렵더라구요..
결과 => Result
검색중 =>Searching으로 했는데 좀 더 생각해볼게요!
frontend/src/types/response.ts
Outdated
export interface SearchingProductResponse { | ||
page: Page; | ||
products: SearchingProduct[]; | ||
} | ||
|
||
export interface ProductSearchResultResponse { |
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.
이것도 SearchingProduct랑 ProductSearchResult라서 더 헷갈리는거 같아요. Searching이 자동완성인가요..?
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.
저도 자동 완성이면 자동 완성과 관련한 단어가 있는게 더 좋아 보입니다!
useInfiniteProductSearchResultsQuery.ts
useInfiniteSearchingProductsQuery.ts
이 2개가 조금 헷갈립니다!
이름만 봤을 때 어떤게 자동 완성인지 모르겠어요 🥲
피드백 반영했습니다! |
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
⏰ 일정