Features
- Add support for canceling navigation events (#641)
- Add additional properties to single-spa routing events:
oldUrl
,newUrl
, andnavigationIsCanceled
(#641)
window.addEventListener('single-spa:before-routing-event', evt => {
console.log(evt.detail.oldUrl);
console.log(evt.detail.newUrl);
console.log(evt.detail.navigationIsCanceled);
evt.detail.cancelNavigation();
})