Skip to content

fix: prevent the tutorial erroring after navigating #1352

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 22, 2025

Conversation

zqianem
Copy link
Contributor

@zqianem zqianem commented May 18, 2025

The Workspace.reset method was changed in a non-backward compatible way in commit eb1eb2b, which caused the call in the tutorial pages to not pass the proper value for the selected file. This was missed because the tutorial page didn't use PageProps for typing.

Fixes #1287
Supersedes #1297

People going through the tutorial are most likely to first run into this on https://svelte.dev/tutorial/svelte/nested-components — select Nested.svelte and then advance to the next page.

Notably, this doesn't address #868 or #1164, which are caused by a separate issue but have similar symptoms.

Edit: something like #1297 is the proper fix for #868 and #1164

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

The `Workspace.reset` method was changed in a non-backward compatible
way in commit eb1eb2b, which caused the call in the tutorial pages
to not pass the proper value for the selected file. This was missed
because the tutorial page didn't use `PageProps` for typing.
Copy link

vercel bot commented May 18, 2025

@zqianem is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

The language server infers this automatically, turns out
Copy link

vercel bot commented May 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview May 22, 2025 5:24am

@eltigerchino
Copy link
Member

Thank you!

@eltigerchino eltigerchino merged commit 0485be4 into sveltejs:main May 22, 2025
4 checks passed
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.

Tutorial Bug: playground doesn't update on transition from Universal Reactivity to Default Values
2 participants