Skip to content
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

react-router-dom v6에서 prompt 사용법 (페이지 이탈 방지 방법) #47

Open
rninzi opened this issue Jul 26, 2023 · 0 comments
Labels
Help 젭알 도 와 줘 요

Comments

@rninzi
Copy link
Collaborator

rninzi commented Jul 26, 2023

appointment 페이지에서 다른 path의 페이지로 경로 이탈 시 beforeunload처럼 confirm 기능이 동작되게 하고 싶은데 어떻게 할 수 있을까요?

react-router-dom에선 v5까지 페이지 이탈을 방지하는 prompt가 있었다고 하는데 요즘은 그 기능을 대신한 커스텀 hooks를 만들어 사용하는 거 같기도 하더라구요,,
여러분들의 많은 관심 부 탁 드 립 니 다 :kku:

@rninzi rninzi added the Help 젭알 도 와 줘 요 label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help 젭알 도 와 줘 요
Projects
None yet
Development

No branches or pull requests

1 participant