Skip to content

Fix/184/dashboard, invitations, members querykey 개선#185

Merged
cksrlcks merged 2 commits intomainfrom
fix/184/querykey
Feb 24, 2025
Merged

Fix/184/dashboard, invitations, members querykey 개선#185
cksrlcks merged 2 commits intomainfrom
fix/184/querykey

Conversation

@cksrlcks
Copy link
Collaborator

❓이슈

✍️ Description

리액트쿼리 쿼리키 관련 공부를 더하고 쿼리키 사용방식을 개선했습니다.
기존에 받은 params object를 그대로 넘겨서 사용할때,
invalidateQuries에서 쿼리키로 무효화가 잘 안되는 현상이 있었습니다.

params object를 그대로 useQuery의 키로 사용한게 문제가 된것이 아니라,
invalidateQuries에서 쿼리키를 작성하는 방식이 잘못되었던것을 알게 되어서, 다시 한번 개선 pr을 올립니다.

(invalidateQuries에서도 똑같은 형태로 객체로 넣어야 했습니다. (객체로 부분값만 넣어도 partial로 무효화가 가능하네요))

✅ Checklist

PR

  • Branch Convention 확인

    feat/* 기능 구현, fix/* 버그 수정, refactor/* 개선

  • Base Branch 확인
  • 적절한 Label 지정
  • Assignee 및 Reviewer 지정

Test

  • 로컬 작동 확인

Additional Notes

  • (없음)

@cksrlcks cksrlcks requested a review from ToKyun02 February 23, 2025 17:21
@cksrlcks cksrlcks self-assigned this Feb 23, 2025
@cksrlcks cksrlcks linked an issue Feb 23, 2025 that may be closed by this pull request
1 task
@vercel
Copy link

vercel bot commented Feb 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
taskify ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 24, 2025 0:08am

Copy link
Owner

@ToKyun02 ToKyun02 left a comment

Choose a reason for hiding this comment

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

쿼리 키 개선하신거 확인했습니다!

오늘 팀미팅에서 예기한 것 처럼 객체로 넘겨서 관리하는 방식이 안헷갈리고 더 범용적으로 쓸 수 있는 것 같아서 저도 참고 많이했습니다!

@cksrlcks cksrlcks merged commit af9b9ee into main Feb 24, 2025
3 checks passed
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.

Fix : dashboard, invitations, members 쿼리키 개선

2 participants