You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: content/tutorial/03-sveltekit/03-loading-data/02-layout-data/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,6 @@ Now, add a sidebar in the layout for the post page:
45
45
</style>
46
46
```
47
47
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`.
49
49
50
50
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