Link does not trigger beforeunload
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
I need to use the
beforeunload event programmatically but it seems that it won't be triggered when doing navigation through a Link component. Does anyone know how I can access this event within the Next router?2 Replies
@Spectacled bear I need to use the `beforeunload` event programmatically but it seems that it won't be triggered when doing navigation through a Link component. Does anyone know how I can access this event within the Next router?
it is a bit tricky to implement this feature for app router atm