Skip to content

docs: update sample code to replace deprecated <svelte:component> #919

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 3 commits into from
Dec 3, 2024

Conversation

nanggo
Copy link
Contributor

@nanggo nanggo commented Dec 3, 2024

What

This PR updates the sample code in the SvelteKit tutorial for universal load functions. Specifically, the <svelte:component> tag, which is deprecated in runes mode, is replaced with a recommended alternative.

Why

Using <svelte:component> in the tutorial causes the following warning:

svelte:component is deprecated in runes mode — components are dynamic by default (svelte_component_deprecated)

The editor's solution already uses the updated code, but the sample code in the tutorial did not reflect this change.

Copy link

vercel bot commented Dec 3, 2024

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

A member of the Team first needs to authorize it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes seem unrelated, could you revert them? (if those changes should be made, they need to happen in the Svelte repo)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry about that. Should I just revert or need to force push at my fork repository?
I think something wrong because 06e0046 commits in.

This reverts commit 06e0046.
Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@dummdidumm dummdidumm merged commit 1666909 into sveltejs:main Dec 3, 2024
2 of 3 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.

2 participants