Finding the correct documentation for Svelte-Kit 4 #13481
-
Hi, <_script lang="ts">
<_/script> <h1>{data.post.title}</h1> Then it says below: +page import type { PageData } from './$types'; let { data }: { data: PageData } = $props(); ... and then a one-liner for the current version 4 (which is hidden, only displayed if you click on Legacy mode): I think this is quite confusing for someone who tries to learn Svelte. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is not. The latest stable version of Svelte is version 5 and the latest version of SvelteKit is version 2. For completeness, the old docs can be found at https://v4.svelte.dev/docs. |
Beta Was this translation helpful? Give feedback.
It is not. The latest stable version of Svelte is version 5 and the latest version of SvelteKit is version 2.
If you start a new project now, you should not be using Svelte 4, its syntax will eventually be removed as well.
For completeness, the old docs can be found at https://v4.svelte.dev/docs.