Skip to content

Commit 3e184b5

Browse files
authored
sync docs (#711)
1 parent da432db commit 3e184b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/svelte.dev/content/docs/kit/20-core-concepts/20-load.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function load({ params }) {
3232
<div>{@html data.post.content}</div>
3333
```
3434

35-
> [!LEGACY] In Svelte 4
35+
> [!LEGACY]
3636
> In Svelte 4, you'd use `export let data` instead
3737
3838
Thanks to the generated `$types` module, we get full type safety.
@@ -322,8 +322,8 @@ export async function load({ fetch, setHeaders }) {
322322
const url = `https://cms.example.com/products.json`;
323323
const response = await fetch(url);
324324

325-
// cache the page for the same length of time
326-
// as the underlying data
325+
// Headers are only set during SSR, caching the page's HTML
326+
// for the same length of time as the underlying data.
327327
setHeaders({
328328
age: response.headers.get('age'),
329329
'cache-control': response.headers.get('cache-control')

apps/svelte.dev/content/docs/kit/20-core-concepts/30-form-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const actions = {
151151
{/if}
152152
```
153153
154-
> [!LEGACY] In Svelte 4
154+
> [!LEGACY]
155155
> In Svelte 4, you'd use `export let data` and `export let form` instead to declare properties
156156
157157
### Validation errors

0 commit comments

Comments
 (0)