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
// Prompt user to confirm if they navigate away from this tab
onDestroy(() => {
if (userChangesPresent&&window.confirm(userChangesPromptText)) {
changes=newMap();
}
});
Even if the user doesn't press confirm, it doesn't actually stop the component from being destroyed. Need to find some other way to 'interrupt' the process
Could have some custom logic in Tabs.svelte, but that feels pretty ugly.
The text was updated successfully, but these errors were encountered:
demoland-web/web/src/lib/leftSidebar/Create.svelte
Lines 45 to 50 in 9347894
Even if the user doesn't press confirm, it doesn't actually stop the component from being destroyed. Need to find some other way to 'interrupt' the process
Could have some custom logic in
Tabs.svelte
, but that feels pretty ugly.The text was updated successfully, but these errors were encountered: