Skip to content

Commit f399edc

Browse files
fix: introduce the missing navigation cancellation fix
1 parent 8718389 commit f399edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/create-router.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export async function onNavigate(path, options = {}) {
193193
}
194194
if (
195195
navigationIndex !== currentNavigationIndex ||
196-
(fromBeforeLoadHook && pendingNavigationIndex + 1 !== currentNavigationIndex)
196+
(fromBeforeLoadHook && currentNavigationIndex < pendingNavigationIndex)
197197
) {
198198
return;
199199
}

0 commit comments

Comments
 (0)