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

feat: form 페이지 이탈 감지해서 수정 사항 있을 경우에 alert 띄워주기 #606

Open
NamJwong opened this issue Apr 1, 2023 · 1 comment

Comments

@NamJwong
Copy link
Member

NamJwong commented Apr 1, 2023

✨ 설명하기

페이지 이탈 감지는 어떻게 할지 좀 고민 ..

수정 사항 있는지는 react hook form 쓰고 있으니까 isDirty 같은 값 확인하면 될 듯!

@NamJwong NamJwong self-assigned this Apr 1, 2023
@Tekiter
Copy link
Member

Tekiter commented Apr 1, 2023

뒤로가기 막는 방법은 이런게 있다!
https://nextjs.org/docs/api-reference/next/router#routerbeforepopstate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants