-
Notifications
You must be signed in to change notification settings - Fork 0
fix: 계정 간 본인인증 상태 오염 및 Hydration mismatch 콘솔 경고 #386
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,17 +8,17 @@ import { useMemberStudyListQuery } from '@/features/study/group/model/use-member | |
| import CompletedGroupStudyList from '@/features/study/group/ui/completed-group-study-list'; | ||
| import GroupStudyFormModal from '@/features/study/group/ui/group-study-form-modal'; | ||
| import NotCompletedGroupStudyList from '@/features/study/group/ui/not-completed-group-study-list'; | ||
| import { useAuth } from '@/hooks/common/use-auth'; | ||
| import { useAuthReady } from '@/hooks/common/use-auth'; | ||
|
|
||
| interface MemberGroupStudyList extends MemberStudyItem { | ||
| type: 'GROUP_STUDY'; | ||
| } | ||
|
|
||
| export default function MyStudy() { | ||
| const { data: authData } = useAuth(); | ||
| const { memberId } = useAuthReady(); | ||
|
|
||
| const { data, isLoading } = useMemberStudyListQuery({ | ||
| memberId: authData?.memberId, | ||
| memberId, | ||
| studyType: 'GROUP_STUDY', | ||
| studyStatus: 'BOTH', | ||
| }); | ||
|
Comment on lines
+18
to
24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find the MemberStudyListRequest type definition
fd --type f -e ts -e tsx | xargs rg "interface MemberStudyListRequest|type MemberStudyListRequest" -A 5Repository: code-zero-to-one/study-platform-client Length of output: 634 🏁 Script executed: # Check the useAuthReady hook return type
fd --type f -e ts -e tsx -path "*hooks*use-auth*" | head -5Repository: code-zero-to-one/study-platform-client Length of output: 250 🏁 Script executed: # Find useMemberStudyListQuery implementation
fd --type f -e ts -e tsx | xargs rg "useMemberStudyListQuery|MemberStudyListQuery" -A 10 -B 2 | head -80Repository: code-zero-to-one/study-platform-client Length of output: 7220 🏁 Script executed: # Check the actual code in the target file
cat -n src/app/\(service\)/\(my\)/my-study/page.tsxRepository: code-zero-to-one/study-platform-client Length of output: 3505 🏁 Script executed: # Check my-participating-studies-section.tsx to see how it handles memberId
sed -n '40,50p' src/components/section/my-participating-studies-section.tsxRepository: code-zero-to-one/study-platform-client Length of output: 523 🏁 Script executed: # Check useAuthReady hook return type
cat -n src/hooks/common/use-auth.tsRepository: code-zero-to-one/study-platform-client Length of output: 4646 🏁 Script executed: # Check useMemberStudyListQuery implementation to see how it handles the parameters
cat -n src/features/study/group/model/use-member-study-list-query.tsRepository: code-zero-to-one/study-platform-client Length of output: 1256
🤖 Prompt for AI Agents |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import GlobalToast from '@/components/ui/global-toast'; | ||
|
|
||
| export default function GroupStudyLayout({ | ||
| children, | ||
| }: Readonly<{ | ||
| children: React.ReactNode; | ||
| }>) { | ||
| return ( | ||
| <> | ||
| <GlobalToast /> | ||
| {children} | ||
| </> | ||
| ); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import GlobalToast from '@/components/ui/global-toast'; | ||
|
|
||
| export default function PremiumStudyLayout({ | ||
| children, | ||
| }: Readonly<{ | ||
| children: React.ReactNode; | ||
| }>) { | ||
| return ( | ||
| <> | ||
| <GlobalToast /> | ||
| {children} | ||
| </> | ||
| ); | ||
| } |
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.
서버 컴포넌트에서 Clarity 초기화 코드가 실행되지 않습니다.
async function레이아웃은 서버에서만 실행되므로typeof window !== 'undefined'조건이 항상false가 되어Clarity.init()이 절대 호출되지 않습니다. Clarity 초기화는 클라이언트 컴포넌트나 별도의useEffect훅으로 이동해야 합니다.🤖 Prompt for AI Agents