-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/library api 쿼리키 포맷 통일 #866 #870
The head ref may contain hidden characters: "feature/libraryApi_\uCFFC\uB9AC\uD0A4_\uD3EC\uB9F7_\uD1B5\uC77C_#866"
Conversation
page?: number; | ||
size?: number; | ||
} | ||
|
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.
이거 사용하려고 앞부분으로 위치바꿨습니다!
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.
굿굿
useCancleReturnBookMutation, | ||
useCancleBorrowBookMutation, | ||
useCancelReturnBookMutation, | ||
useCancelBorrowBookMutation, |
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.
함수 네이밍 변경한거랑, cancle로 오타났었어서.. 수정했습니다!
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/api/libraryApi.ts
Outdated
borrowedBookList: ['library', 'borrowedBookList'] as const, | ||
base: ['books'], | ||
bookList: (params: BookListSearch) => [...libraryKeys.base, params] as const, | ||
borrowedBookList: () => [...libraryKeys.base, 'bookBorrows'] as const, |
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.
page&size 빠진거 같습니다
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/api/libraryApi.ts
Outdated
borrowedBookList: ['library', 'borrowedBookList'] as const, | ||
base: ['books'], | ||
bookList: (params: BookListSearch) => [...libraryKeys.base, params] as const, | ||
borrowedBookList: () => [...libraryKeys.base, 'bookBorrows'] as const, |
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.
파라미터 안 넘겨주는 경우는 함수형으로 안하고 바로 배열로 해도 될 것 같아요!
에러 이슈 확인했습니다!
연관 이슈
작업 요약
useGetBookBorrowsQuery
->useGetBorrowedBookListQuery
로 네이밍 변경리뷰 요구사항