Skip to content
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

Update to $props() for legacy <svelte:self> #15160

Closed
jaminwebdev opened this issue Jan 30, 2025 · 1 comment
Closed

Update to $props() for legacy <svelte:self> #15160

jaminwebdev opened this issue Jan 30, 2025 · 1 comment

Comments

@jaminwebdev
Copy link

Describe the bug

https://svelte.dev/docs/svelte/legacy-svelte-self shows old prop declaration syntax:

<script>
	export let count;
</script>

{#if count > 0}
	<p>counting down... {count}</p>
	<svelte:self count={count - 1} />
{:else}
	<p>lift-off!</p>
{/if}

Should probably update to $props()

Reproduction

N/A

Logs

System Info

N/A

Severity

annoyance

jaminwebdev added a commit to jaminwebdev/svelte that referenced this issue Jan 30, 2025
@Ocean-OS
Copy link
Contributor

This is in the legacy documentation, and as such should use Svelte 4/3 syntax.

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

No branches or pull requests

2 participants