-
Notifications
You must be signed in to change notification settings - Fork 1
feat: 모달 데이터 전달 시스템 리팩토링 및 공유 기능 API 연동 #22
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 85
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 83
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 2601
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 234
🏁 Script executed:
find app/result -type d | sortRepository: SWYP-mingling/Frontend
Length of output: 76
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 93
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 93
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 93
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 93
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 2494
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 1711
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 623
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 48
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 125
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 628
🏁 Script executed:
cat -n components/modal/globalModal.tsx | head -100Repository: SWYP-mingling/Frontend
Length of output: 1198
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 976
🏁 Script executed:
rg "meetingId" components/modal -A 5 -B 5Repository: SWYP-mingling/Frontend
Length of output: 2823
🌐 Web query:
Next.js App Router useParams() static route behavior empty segment💡 Result:
In the App Router,
useParams()only includes active dynamic segments. So:useParams()returns{}. (nextjs.org)app/shop/[[...slug]]/page.tsx:/shopmeans the optional segment is not present, so in practice you should expect noslugkey (i.e.useParams()is{}), and handle it as optional. (nextjs.org)/shop/a/bmeansslugis active and you get{ slug: ['a','b'] }. (nextjs.org)Typical handling pattern:
If you’re seeing
nullon the first render, that’s a Pages Router static optimization behavior (not App Router):useParams()can benullduring pre-rendering and then fill after hydration. (nextjs.org)Citations:
🏁 Script executed:
Repository: SWYP-mingling/Frontend
Length of output: 48
meetingId가 undefined로 전달되어 SHARE 모달 기능이 작동하지 않습니다.
/result는 동적 세그먼트가 없는 정적 라우트이므로
useParams().id는 항상undefined를 반환합니다. 이는 SHARE 모달에 빈 문자열 또는 undefined로 전달되어 링크 생성 API가 실패합니다./result/[id]로 라우팅을 변경하거나 useSearchParams()로 쿼리 파라미터를 사용해 주세요. 또한 meetingId가 없을 때 SHARE 버튼을 비활성화하거나 클릭을 방지해야 합니다.🔧 예시 수정안 (쿼리 기반)
또는 라우트를 동적 세그먼트로 변경:
/app/result/[id]/page.tsx🤖 Prompt for AI Agents