[#192] 서버 props 대신 useSearchParams 사용하여 클라이언트 컴포넌트 수정#193
Merged
Conversation
✅ GitHub Actions 실행 결과
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝작업 내용
서버 props 대신 useSearchParams 사용하여 클라이언트 컴포넌트 수정
✨PR Point
배포 서비스에서 로그인 성공 후 대시보드로 리다이렉트 되어야하는데 타입에러가 발생하였습니다.
searchParams.redirectTo에서 문자열이 아니라 null이나 undefined로 들어와서 에러가 발생한게 아닐까 싶습니다.
로그인 컴포넌트 확인해보니 클라이언트 컴포넌트인데 서버 props로 searchParams를 가져오고 있더라고요..ㅠㅠuseSearchParams로 수정했습니다. 로컬에서는 문제 없는데 배포 후 에러 확인이 필요할 것 같습니다.