You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
It would be great if there was an event triggered before page:loading were document.location still points to the current url.
The problem is that when page:loading is triggered document.location already points to the new url, so it's hard to do cleanup like ubsubscribing from pubsub channels, calling deconstructors etc.
Turbolinks has a page:before-change event that can be used for that.
Another alternative would be to pass the old url to the page:loading event handler as an additional parameter.
The text was updated successfully, but these errors were encountered:
It would be great if there was an event triggered before page:loading were document.location still points to the current url.
The problem is that when page:loading is triggered document.location already points to the new url, so it's hard to do cleanup like ubsubscribing from pubsub channels, calling deconstructors etc.
Turbolinks has a page:before-change event that can be used for that.
Another alternative would be to pass the old url to the page:loading event handler as an additional parameter.
The text was updated successfully, but these errors were encountered: