We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
파이어베이스의 구글 로그인 모달창이 닫히고 나서 isLoggedIn 상태가 업데이트되는데 1초 정도 지연이 있습니다.
Window
11
Chrome
The text was updated successfully, but these errors were encountered:
@usbinn 콘솔 디버깅 추적을 해봤는데,
로그인 버튼을 누르고 첫 번째 상태
needsRegistration: false isLoggedIn: true isRegistered: null // isRegistered 값이 아직 비동기 쿼리 전이라 판단되지 않아 null
이후 바로
needsRegistration: false isLoggedIn: true isRegistered: true
즉, isRegistered: null이라 needsRegistration은 계산상 false, 하지만 모달 로직은 이전 needsRegistration 상태 기반으로 열립니다.
그러고 나서 isRegistered: true가 되니까 닫힘이 느리게 발생하는 이슈 같습니다. 원인을 찾아서 금방 해결해보겠습니다!
Sorry, something went wrong.
if (auth.isRegistered === null) return;
를 추가해보았으나, 파이어베이스 로그인 자체가 비동기 처리라 바로 닫히지 않는 것 같습니다. 대신, 로딩 UI를 보여주는 건 어떨지 제안드립니다.
hyun907
Successfully merging a pull request may close this issue.
📝 에러 설명
파이어베이스의 구글 로그인 모달창이 닫히고 나서 isLoggedIn 상태가 업데이트되는데 1초 정도 지연이 있습니다.
🐞 에러 대상 및 상황
OS
Window
Version
11
Browser
Chrome
🌿 To-do
📚 ETC
2025-04-13.005616.mp4
The text was updated successfully, but these errors were encountered: