Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Address bugs in SvelteKit “Preloading” tutorial example#1334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
BioniCosmos wants to merge1 commit intosveltejs:main
base:main
Choose a base branch
Loading
fromBioniCosmos:fix-tutorial

Conversation

BioniCosmos
Copy link

This PR fixes an issue inthe SvelteKit “preloading” tutorial where theprevious navigation details were lost after navigation. This occurred becauseprevious directly referenced the mutablenavigating object, causing it to update whennavigating becamenull.

The fix ensuresprevious holds a snapshot of the navigation state at its inception by creating a shallow copy ({ ...navigating }) instead of a direct reference.

Correctly capture the previous navigation state.
@vercelVercel
Copy link

vercelbot commentedMay 12, 2025

@BioniCosmos is attempting to deploy a commit to theSvelte Team onVercel.

A member of the Team first needs toauthorize it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@BioniCosmos

[8]ページ先頭

©2009-2025 Movatter.jp