From 8aca9d47b1a5bbef2bbfbf2930ed572df6064cb4 Mon Sep 17 00:00:00 2001 From: "svelte-docs-bot[bot]" <196124396+svelte-docs-bot[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 00:13:11 +0000 Subject: [PATCH] sync svelte docs --- .../content/docs/svelte/02-runes/04-$effect.md | 2 +- .../docs/svelte/03-template-syntax/06-snippet.md | 2 +- .../docs/svelte/03-template-syntax/08-@html.md | 2 +- .../svelte/05-special-elements/07-svelte-options.md | 2 +- .../docs/svelte/06-runtime/03-lifecycle-hooks.md | 2 +- .../docs/svelte/07-misc/07-v5-migration-guide.md | 12 ++++++------ .../98-reference/.generated/compile-warnings.md | 2 +- .../docs/svelte/98-reference/30-compiler-warnings.md | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/svelte.dev/content/docs/svelte/02-runes/04-$effect.md b/apps/svelte.dev/content/docs/svelte/02-runes/04-$effect.md index 3e71a3ab43..d07628b0d3 100644 --- a/apps/svelte.dev/content/docs/svelte/02-runes/04-$effect.md +++ b/apps/svelte.dev/content/docs/svelte/02-runes/04-$effect.md @@ -136,7 +136,7 @@ An effect only reruns when the object it reads changes, not when a property insi An effect only depends on the values that it read the last time it ran. This has interesting implications for effects that have conditional code. -For instance, if `condition` is `true` in the code snippet below, the code inside the `if` block will run and `color` will be evaluated. As such, changes to either `condition` or `color` [will cause the effect to re-run](/playground/untitled#H4sIAAAAAAAAE21RQW6DMBD8ytaNBJHaJFLViwNIVZ8RcnBgXVk1xsILTYT4e20TQg89IOPZ2fHM7siMaJBx9tmaWpFqjQNlAKXEihx7YVJpdIyfRkY3G4gB8Pi97cPanRtQU8AuwuF_eNUaQuPlOMtc1SlLRWlKUo1tOwJflUikQHZtA0klzCDc64Imx0ANn8bInV1CDhtHgjClrsftcSXotluLybOUb3g4JJHhOZs5WZpuIS9gjNqkJKQP5e2ClrR4SMdZ13E4xZ8zTPOTJU2A2uE_PQ9COCI926_hTVarIU4hu_REPlBrKq2q73ycrf1N-vS4TMUsulaVg3EtR8H9rFgsg8uUsT1B2F9eshigZHBRpuaD0D3mY8Qm2BfB5N2YyRzdNEYVDy0Ja-WsFjcOUuP1HvFLWA6H3XuHTUSmmDV2--0TXonxsKbp7G9C6R__NONS-MFNvxj_d6mBAgAA). +For instance, if `condition` is `true` in the code snippet below, the code inside the `if` block will run and `color` will be evaluated. This means that changes to either `condition` or `color` [will cause the effect to re-run](/playground/untitled#H4sIAAAAAAAAE21RQW6DMBD8ytaNBJHaJFLViwNIVZ8RcnBgXVk1xsILTYT4e20TQg89IOPZ2fHM7siMaJBx9tmaWpFqjQNlAKXEihx7YVJpdIyfRkY3G4gB8Pi97cPanRtQU8AuwuF_eNUaQuPlOMtc1SlLRWlKUo1tOwJflUikQHZtA0klzCDc64Imx0ANn8bInV1CDhtHgjClrsftcSXotluLybOUb3g4JJHhOZs5WZpuIS9gjNqkJKQP5e2ClrR4SMdZ13E4xZ8zTPOTJU2A2uE_PQ9COCI926_hTVarIU4hu_REPlBrKq2q73ycrf1N-vS4TMUsulaVg3EtR8H9rFgsg8uUsT1B2F9eshigZHBRpuaD0D3mY8Qm2BfB5N2YyRzdNEYVDy0Ja-WsFjcOUuP1HvFLWA6H3XuHTUSmmDV2--0TXonxsKbp7G9C6R__NONS-MFNvxj_d6mBAgAA). Conversely, if `condition` is `false`, `color` will not be evaluated, and the effect will _only_ re-run again when `condition` changes. diff --git a/apps/svelte.dev/content/docs/svelte/03-template-syntax/06-snippet.md b/apps/svelte.dev/content/docs/svelte/03-template-syntax/06-snippet.md index 9d19570975..51d1dd6273 100644 --- a/apps/svelte.dev/content/docs/svelte/03-template-syntax/06-snippet.md +++ b/apps/svelte.dev/content/docs/svelte/03-template-syntax/06-snippet.md @@ -278,4 +278,4 @@ Snippets can be created programmatically with the [`createRawSnippet`](svelte#cr ## Snippets and slots -In Svelte 4, content can be passed to components using [slots](legacy-slots). Snippets are more powerful and flexible, and as such slots are deprecated in Svelte 5. +In Svelte 4, content can be passed to components using [slots](legacy-slots). Snippets are more powerful and flexible, and so slots have been deprecated in Svelte 5. diff --git a/apps/svelte.dev/content/docs/svelte/03-template-syntax/08-@html.md b/apps/svelte.dev/content/docs/svelte/03-template-syntax/08-@html.md index 5a05d83261..681eb63154 100644 --- a/apps/svelte.dev/content/docs/svelte/03-template-syntax/08-@html.md +++ b/apps/svelte.dev/content/docs/svelte/03-template-syntax/08-@html.md @@ -23,7 +23,7 @@ It also will not compile Svelte code. ## Styling -Content rendered this way is 'invisible' to Svelte and as such will not receive [scoped styles](scoped-styles) — in other words, this will not work, and the `a` and `img` styles will be regarded as unused: +Content rendered this way is 'invisible' to Svelte and as such will not receive [scoped styles](scoped-styles). In other words, this will not work, and the `a` and `img` styles will be regarded as unused: ```svelte diff --git a/apps/svelte.dev/content/docs/svelte/05-special-elements/07-svelte-options.md b/apps/svelte.dev/content/docs/svelte/05-special-elements/07-svelte-options.md index b159ddd2e2..b4f8c67704 100644 --- a/apps/svelte.dev/content/docs/svelte/05-special-elements/07-svelte-options.md +++ b/apps/svelte.dev/content/docs/svelte/05-special-elements/07-svelte-options.md @@ -13,7 +13,7 @@ The `` element provides a place to specify per-component compile - `runes={false}` — forces a component into _legacy mode_ - `namespace="..."` — the namespace where this component will be used, can be "html" (the default), "svg" or "mathml" - `customElement={...}` — the [options](custom-elements#Component-options) to use when compiling this component as a custom element. If a string is passed, it is used as the `tag` option -- `css="injected"` — the component will inject its styles inline: During server side rendering, it's injected as a `