Skip to content

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.
@vercel
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
@vercel
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

@teemingc
Copy link
Member

Thank you!

@teemingc teemingc 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