Skip to content

Conversation

@99minji
Copy link
Collaborator

@99minji 99minji commented Nov 16, 2024

  • link card store 에 totalcount 추가했습니다~!

@junjeeong
Copy link
Collaborator

옹 제 Linkpage 브랜치 merge 하고 push 하셨나봐여?

interface UpdateLinkBody {
url: string;
}

Copy link
Collaborator

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) => ({
Copy link
Collaborator

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,
Copy link
Collaborator

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 로 타입 지정하는것이 좋을것같습니당

Copy link
Collaborator

@hongggyelim hongggyelim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 ! !

@99minji 99minji closed this Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants