Skip to content

Commit ee29e32

Browse files
authored
docs: change grammar to help reduce confusion (#431)
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.
1 parent 8cc995f commit ee29e32

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/03-sveltekit/03-loading-data/02-layout-data

1 file changed

+1
-1
lines changed

content/tutorial/03-sveltekit/03-loading-data/02-layout-data/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ Now, add a sidebar in the layout for the post page:
4545
</style>
4646
```
4747

48-
The layout (and the page below it) inherits `data.summaries` from the parent `+layout.server.js`.
48+
The layout (and any page below it) inherits `data.summaries` from the parent `+layout.server.js`.
4949

5050
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.

0 commit comments

Comments
 (0)