docs: clarify "obsolete" in runes blog post (#9364)

pull/9368/head
Ben McCann 1 year ago committed by GitHub
parent 895612514c
commit 54233adb63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -208,10 +208,9 @@ Runes are an additive feature, but they make a whole bunch of existing concepts
- `export let`
- `$:`, with all its attendant quirks
- different behaviour between `<script>` and `<script context="module">`
- the store API, parts of which are genuinely quite complicated
- the `$` store prefix
- `$$props` and `$$restProps`
- lifecycle functions (things like `onMount` can just be `$effect` functions)
- lifecycle functions (things like `afterUpdate` can just be `$effect` functions)
- the store API and `$` store prefix (while stores are no longer necessary, they are not being deprecated)
For those of you who already use Svelte, it's new stuff to learn, albeit hopefully stuff that makes your Svelte apps easier to build and maintain. But newcomers won't need to learn all those things — it'll just be in a section of the docs titled 'old stuff'.

Loading…
Cancel
Save