Files
grimmory/frontend/src/app/features/book/service/book-query-keys.ts
T
James Cox 874b013f75 refactor(frontend): rename booklore-ui to frontend
- 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
2026-04-22 17:26:39 -04:00

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;