From c8faf6d5da853dc46d5fb9b5fbf95e1efecf3b06 Mon Sep 17 00:00:00 2001 From: Paul-Sebastian Manole Date: Sun, 16 Jul 2023 15:43:17 +0300 Subject: [PATCH] docs: change grammar to help reduce confusion It was not clear which page below the layout inherits the data, because in fact it could be any page. The confusion can arise from the way the previous sentence was expressed, as **visually**, there is nothing `below` the layout in the project tree. There are siblings though, like `+page.svelte` but for a Svelte beginner it is **not** immediately obvious that this page also falls `under` the same layout. --- .../03-sveltekit/03-loading-data/02-layout-data/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorial/03-sveltekit/03-loading-data/02-layout-data/README.md b/content/tutorial/03-sveltekit/03-loading-data/02-layout-data/README.md index 3b25ecf82..0ea2b69c5 100644 --- a/content/tutorial/03-sveltekit/03-loading-data/02-layout-data/README.md +++ b/content/tutorial/03-sveltekit/03-loading-data/02-layout-data/README.md @@ -45,6 +45,6 @@ Now, add a sidebar in the layout for the post page: ``` -The layout (and the page below it) inherits `data.summaries` from the parent `+layout.server.js`. +The layout (and any page below it) inherits `data.summaries` from the parent `+layout.server.js`. When we navigate from one post to another, we only need to load the data for the post itself — the layout data is still valid. See the documentation on [invalidation](https://kit.svelte.dev/docs/load#rerunning-load-functions) to learn more.