- Frontend path: - rename the tracked Angular app tree from `booklore-ui/` to `frontend/` - preserve file contents during the move so this commit stays focused on the path change itself - Frontend docs: - update the moved frontend README and contribution guide where they refer to the renamed folder - keep those edits limited to path references introduced by the directory rename
14 lines
538 B
TypeScript
14 lines
538 B
TypeScript
export const BOOKS_QUERY_KEY = ['books'] as const;
|
|
|
|
export const bookDetailQueryKey = (bookId: number, withDescription: boolean) =>
|
|
['books', 'detail', bookId, withDescription] as const;
|
|
|
|
export const bookDetailQueryPrefix = (bookId: number) =>
|
|
['books', 'detail', bookId] as const;
|
|
|
|
export const bookRecommendationsQueryKey = (bookId: number, limit: number) =>
|
|
['books', 'recommendations', bookId, limit] as const;
|
|
|
|
export const bookRecommendationsQueryPrefix = (bookId: number) =>
|
|
['books', 'recommendations', bookId] as const;
|