Skip to content
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

Merged
merged 6 commits into from
Feb 22, 2024

Conversation

useonglee
Copy link
Member

작업 내용

  • 연락처 등록 기능 구현
  • 연락처 api 요청 로직 수정

반영 화면

2024-02-22.4.11.33.mov

기타

  • n/a

@useonglee useonglee self-assigned this Feb 22, 2024
@@ -0,0 +1,94 @@
export const INTEREST_TAGS = [
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

wOw...이게 다 하드코딩 했다는 그거군요..! 수고하셨어요!!!

@useonglee useonglee merged commit 9f41a83 into develop Feb 22, 2024
3 of 4 checks passed
@useonglee useonglee deleted the feat/LINKER-124 branch February 22, 2024 07:19
Comment on lines +6 to +20
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'];
};
Copy link
Member Author

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와 연동했습니당

Copy link
Collaborator

Choose a reason for hiding this comment

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

넵 확인했습니다 ! 수고하셨어요 :)

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.

2 participants