Skip to content

Conversation

@KIMGEONHWI
Copy link
Collaborator

@KIMGEONHWI KIMGEONHWI commented Dec 21, 2025

📌 Related Issues

✅ 체크 리스트

  • PR 제목의 형식을 잘 작성했나요? e.g. [Feat] PR 템플릿 작성
  • 빌드가 성공했나요? (pnpm build)
  • 리뷰어와 라벨을 지정했나요?

📄 Tasks

  • 모달 버튼 정상화
  • 모달이 열려 있는 상태에서 스와이프로 뒤로가기를 시도해도 페이지가 현재 위치에 유지

⭐ PR Point

📷 Screenshot

🔔 ETC

@KIMGEONHWI KIMGEONHWI self-assigned this Dec 21, 2025
@KIMGEONHWI KIMGEONHWI added 🪄 Refactor 코드 리팩토링 건휘 Pull it back, that siren labels Dec 21, 2025
@KIMGEONHWI KIMGEONHWI added this to DASH Dec 21, 2025
@KIMGEONHWI KIMGEONHWI requested a review from heesunee as a code owner December 21, 2025 11:43
@KIMGEONHWI KIMGEONHWI linked an issue Dec 21, 2025 that may be closed by this pull request
@github-actions
Copy link

✅ Storybook 배포 완료! 🔗 https://67e4fd1fd2c7078dceec04a4-rybatvpqgc.chromatic.com/

Copy link
Member

@constantly-dev constantly-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다! prod에서 한번 확인해봅시다~

Comment on lines +82 to +84
requestAnimationFrame(() => {
navigate(location.pathname + location.search, { replace: true });
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드 실행 시점을 늦추기 위해 requestAnimationFrame를 사용하신 걸까요??

Copy link
Collaborator Author

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를 사용하였습니다!

Copy link
Member

@hansoojeongsj hansoojeongsj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

최공~ 정보 수정 모달에서 밖으로 나올 때, 모달을 닫으면 현재 무조건 홈으로 이동하는데 이 플로우가 맞는지 확인 부탁드립니다! 마이페이지에서 들어간 정보 수정 페이지라 닫으면 마이페이지로 돌아오는 게 자연스럽게 느껴지는 것 같습니당 ..

@KIMGEONHWI KIMGEONHWI merged commit b3f45ae into develop Dec 23, 2025
8 checks passed
@KIMGEONHWI KIMGEONHWI deleted the feat/#632/sp4-modal branch December 23, 2025 12:26
@github-project-automation github-project-automation bot moved this to Done in DASH Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

건휘 Pull it back, that siren 🪄 Refactor 코드 리팩토링

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Refactor] SP4 모달 관련 QA 반영

4 participants