-
Notifications
You must be signed in to change notification settings - Fork 6
Refactor/link card store #100
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
Conversation
99minji
commented
Nov 16, 2024
- link card store 에 totalcount 추가했습니다~!
|
옹 제 Linkpage 브랜치 merge 하고 push 하셨나봐여? |
| interface UpdateLinkBody { | ||
| url: 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.
import getLinks 는 사용하지않으면 삭제되어야할 것 같습니당
| } | ||
|
|
||
| export const useLinkCardStore = create<LinkCardStore>((set) => ({ | ||
| export const useLinkCardStore = create<LinkCardStore>((set, get) => ({ |
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.
get 이 추가된 이유가 궁금합니다! 밑에서 쓰이고있는거같진 않아서욥
| export const useLinkCardStore = create<LinkCardStore>((set) => ({ | ||
| export const useLinkCardStore = create<LinkCardStore>((set, get) => ({ | ||
| linkCardList: [], | ||
| totalCount: 0, |
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.
초기값을 null로 지정하고, interface LinkCardStore 에서는 number| null 로 타입 지정하는것이 좋을것같습니당
hongggyelim
left a comment
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.
고생하셨습니다 ! !