resuminator
resuminator copied to clipboard
➕ REQUEST: Prevent navigation while saving details
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe.
When users are typing their details, the resuminator keeps saving their work automatically, but sometimes by accident, they may navigate to some other page while the save process is going on.
Describe the solution you'd like
We need to implement an onbeforeunload
handler for the "Create" page window to prevent these accidental navigations.
Describe alternatives you've considered
No response
Additional context
No response
Hi @viveknigam3003, I'd like to work on this task. Can you please assign it to me?
Sure @drecali! Let me know if you face any issues while setting up a local instance
Hi @viveknigam3003 Is the issue still open? If so, then can I please work on it?
Hi, @drecali If you are still working on this issue. Please let us know.
@merrcury I think it's best to let @developer-diganta work on this issue.
To give some background, I tried the naive approach of just adding an onbeforeunload
event listener, but it only worked if refreshing the page, navigating to a different URL, or using the Back or Fwd buttons. It did not work when clicking on other Menu
navigation buttons. I think this is because of Next.js routing overriding the browser's native navigation behavior.
I think the solution should conditionally apply an onbeforeunload
listener but also handle Next.js routing behavior. I hope this helps!
@developer-diganta You can pick this up.