[FE] fix: 로그인 리다이렉트시 방설정 창이 보이는 오류 해결 #219
Merged
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.
로그인 리다이렉트시 방설정 창이 보이는 오류 해결
PR 설명
✅ 완료한 기능 명세
고민과 해결과정
기존의 isSettingDone이 그 역할을 했으나, 현재 isSettingDone는 signal을 시작시키는 트리거형태로 작동하기 때문에, 로그인시의 redirection인지, 첫 접속인지 분기할 필요가 있었다.
hasLogin이라는 변수를 하나 선언하고이전에 저장된 code와 nickName값에 따라 로그인 리다이렉션인지, 처음 접속하는 과정인지를 분기할 수 있도록 했다.