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
The issue is that when tried to cancel navigation from /app1 to /app2 . It prevents from navigating to /app2 but ( /app1) is removed from the DOM . URL remains /app1
_listner(ev){
if (
new URL(ev.detail.oldUrl).pathname === '/app1'
) {
if (confirm('Are you sure you want to go back?')) {
console.log('Yes');
} else {
ev.detail.cancelNavigation();
}
}
}
window.addEventListener(
'single-spa:before-routing-event',
this._listner
);
Any suggestions/advice would be greatly appreciated! @joeldenning
Thank you!
The text was updated successfully, but these errors were encountered:
Experiencing the same. It removes the app from the DOM, even the used framework does not get informed (like unMount or something). This is a huge issue, how can I upvote?
The issue is that when tried to cancel navigation from /app1 to /app2 . It prevents from navigating to /app2 but ( /app1) is removed from the DOM . URL remains /app1
"single-spa": "5.9.4",
"single-spa-layout": "2.1.0",
Code :
Any suggestions/advice would be greatly appreciated! @joeldenning
Thank you!
The text was updated successfully, but these errors were encountered: