Detect rerouting and stop it #route
Unanswered
Florida White posted this in #help-forum
Florida WhiteOP
Hello, Im trying to create a pop up if the user leaves the page without saving changes in next js 13 app dir , but as i can se route events have been replaced and i cant find a way to detect if there is a rerouting event and to stop the navigation mid way with conditions.
Anyone been around this ?
Anyone been around this ?