-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issues not applicable to backspace event #1
Comments
Hello, thank you for your feedback! |
Thank you so much for your comment! First of all, I'm using the Chrome browser. And when I checked again, the browser default refresh prevention works, so I'm sorry that I talked about this part. The event listener in the file The problem is the case of browser back button, and I understand the issue that you checked! Lastly, I want to say thank you again for leaving a comment. I hope you're always full of luck! ☘️ |
Hi! I am currently studying front-end development. I used your library during the project, and I opened the issue because I had a question. (The project is using Next.js 13, and App router.)
After install your nextjs-router-events library, and I want to prevent by pop-up a modal window when a user leaves the write page.
The modal pops up well when I try to leave via
<Link>
in navigation bar, but the problem is that it doesn't pop up normally when leaves using browser-native navigation methods(refresh or backspace).My current code is as follows.
I'm sorry I couldn't summarize the problem and brought you soooo long codes.
This is my first Next.js project, so there are many things I don't know yet, and this summary was my best shot...😂
You can also see the whole code below.
https://github.com/Savers-Save-Earth/Savers/tree/163-fix-community-page
Thank you very much for the wonderful library. ✨ Have a nice day!
The text was updated successfully, but these errors were encountered: