-
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
feat: [LINKER-124] 연락처 등록 기능 구현 #61
Conversation
@@ -0,0 +1,94 @@ | |||
export const INTEREST_TAGS = [ | |||
{ |
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.
wOw...이게 다 하드코딩 했다는 그거군요..! 수고하셨어요!!!
const useContact = (defaultContact: ContactDataRes) => { | ||
const { data: defualtContactData } = useSuspenseQuery({ | ||
queryKey: useContact.getKey(), | ||
queryFn: () => getContact(), | ||
initialData: defaultContact, | ||
}); | ||
|
||
return { defualtContactData }; | ||
}; | ||
|
||
export default useContact; | ||
|
||
useContact.getKey = () => { | ||
return ['/v1/contact']; | ||
}; |
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.
@JjungminLee 정민님 요기 연락처 부분
서버에서 api 호출 -> 클라에서 react-query로 쿼리 캐싱 했어요
연락처 등록하자마자 연락처 받아오는 api 캐시 날리기위해서 react-query와 연동했습니당
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.
넵 확인했습니다 ! 수고하셨어요 :)
작업 내용
반영 화면
2024-02-22.4.11.33.mov
기타