Skip to content

chore: share navigation completion between navigate and shallow routing - #16838

Merged
Rich-Harris merged 4 commits into
version-3from
chore-navigate-completion
Aug 18, 2026
Merged

chore: share navigation completion between navigate and shallow routing#16838
Rich-Harris merged 4 commits into
version-3from
chore-navigate-completion

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

#16449 made shallow goto run navigation hooks by copying two blocks out of navigate into update_state: the onNavigate callback run with its afterNavigate registration, and the completion tail (abort check, scroll and focus reset, fulfil, to.scroll, afterNavigate callbacks). #16685 then had to change both copies. They are now run_on_navigate_callbacks and finish_navigation, called from both places. The second commit builds navigate's not-found fallback once instead of in two branches that differ only by the message suffix.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 17, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 7d6f66e:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/7d6f66e3663a93912051ad8df6cde6ce9fca2a6d

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16838

@changeset-bot

changeset-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7d6f66e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

@Rich-Harris
Rich-Harris merged commit e54a37f into version-3 Aug 18, 2026
27 checks passed
@Rich-Harris
Rich-Harris deleted the chore-navigate-completion branch August 18, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants