-
Notifications
You must be signed in to change notification settings - Fork 2
[Refactor] SP4 모달 관련 QA 반영 #634
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
Conversation
|
✅ Storybook 배포 완료! 🔗 https://67e4fd1fd2c7078dceec04a4-rybatvpqgc.chromatic.com/ |
constantly-dev
left a comment
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.
수고하셨습니다! prod에서 한번 확인해봅시다~
| requestAnimationFrame(() => { | ||
| navigate(location.pathname + location.search, { replace: true }); | ||
| }); |
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.
코드 실행 시점을 늦추기 위해 requestAnimationFrame를 사용하신 걸까요??
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.
코드 실행 시점을 늦추기 위해
requestAnimationFrame를 사용하신 걸까요??
넵, 맞습니다. 이미 모달이 열려있는 상황에서 뒤로가기시 popstate 처리 중 바로 navigate를 호출하면 방금 pushState로 되돌린 히스토리 상태가 반영되기 전에 다시 네비게이션이 일어나는 상황이 발생하였습니다. 히스토리 스택이 어긋나는 상황을 방지하기 위해서 requestAnimationFrame를 사용하였습니다!
hansoojeongsj
left a comment
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.
최공~ 정보 수정 모달에서 밖으로 나올 때, 모달을 닫으면 현재 무조건 홈으로 이동하는데 이 플로우가 맞는지 확인 부탁드립니다! 마이페이지에서 들어간 정보 수정 페이지라 닫으면 마이페이지로 돌아오는 게 자연스럽게 느껴지는 것 같습니당 ..
📌 Related Issues
✅ 체크 리스트
📄 Tasks
⭐ PR Point
📷 Screenshot
🔔 ETC