-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: BookSearchInput을 Input 공통 컴포넌트로 대체 * refactor: 검색 기능에 setState 제거 및 react-hook-form 적용 * chore: BookSearchInput 스토리 제거 * refactor: 검색페이지 useQuery를 useQueryWithSuspense로 교체 * feat: 도서 검색 페이지 스켈레톤 추가 * fix: storybook build 에러 수정 * fix: BestSellers 스토리북 오류 수정 * chore: 최근 검색어 시맨틱 태그 적용 * fix: 도서 검색 페이지 Skeleton 작성 부 수정 * refactor: 도서 검색 관련 useQuery에 쿼리키 팩토리 패턴 적용 * refactor: book 쿼리 키에 누락된 리터럴 타입 적용 * refactor: RecentSearch 컴포넌트의 react-hook-form 결합도 개선 * fix: storybook 빌드에러 수정 (args 수정) * refactor: BestSeller, RecentSearch 쿼리 함수의 options 타입 수정
- Loading branch information
Showing
12 changed files
with
169 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { APIBook } from '@/types/book'; | ||
|
||
const bookKeys = { | ||
all: ['book'], | ||
all: ['book'] as const, | ||
details: () => [...bookKeys.all, 'detail'] as const, | ||
detail: (bookId: APIBook['bookId']) => | ||
[...bookKeys.details(), bookId] as const, | ||
bestSeller: () => [...bookKeys.all, 'bestSeller'], | ||
bookmark: (bookId: APIBook['bookId']) => | ||
[...bookKeys.detail(bookId), 'bookmark'] as const, | ||
comments: (bookId: APIBook['bookId']) => | ||
[...bookKeys.detail(bookId), 'comments'] as const, | ||
bookSearch: (query: string) => | ||
[...bookKeys.all, 'bookSearch', query] as const, | ||
recentSearch: () => [...bookKeys.all, 'recentSearch'] as const, | ||
bestSeller: () => [...bookKeys.all, 'bestSeller'] as const, | ||
}; | ||
|
||
export default bookKeys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.