-
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
[MZO-34] API 모듈 및 인터페이스 구축 #5
Conversation
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.
props drilling보다 dehydrate + hydrate로 적용한게 더 깔끔한것 같아요! 보면서 되게 에러바운더리와 같은 느낌이였는데 알파버전에서는 이름을 Hydrate
를 HydrationBoundary
로 바꾼거 같더라구요..?? (TanStack/query#5455) 우연히 보게된 PR이라 놀랐습니다ㅋㅋ
수고 많으셨어요 루키!👍
추가) 이름을 바꾼게 아니라 HydrationBoundary 컴포넌트가 새로 추가되는건가 봐요!(https://github.com/TanStack/query/blob/alpha/packages/react-query/src/HydrationBoundary.tsx)
오 아예 컴포넌트를 만들고 내부에서 hydration을 돌려버리네요. 이것도 참고해야겠네요 |
Jira Issue 번호
#34
작업 내용
테크스펙
Next 13부터는 모든 컴포넌트가 기본적으로 서버 컴포넌트이므로, React-Query를 사용하는 방식이 변경되었습니다.
기존에는 App 단에서 전역으로 사용할 QueryClient를 Provider로 제공했지만, 이제는 SSR에 대한 대응도 필요해졌습니다.
자세한 내용은 저도 내일 짬내서 정리해오겠습니다. 일단 참고한 포스팅은 아래 남겨두겠습니다.
혹시 더 나은 방법이 있거나 현재 방식의 문제점이 있다면 바로 코멘트에 기술해주세요. 적극 반영하겠습니다.
Checklist