Skip to content

Commit 07e6981

Browse files
committed
update in tutorial
1 parent 777f408 commit 07e6981

File tree

6 files changed

+6
-6
lines changed
  • apps/svelte.dev/content/tutorial
    • 01-svelte/02-reactivity/02-deep-state
    • 02-advanced-svelte
      • 02-snippets/02-passing-snippets
      • 05-advanced-transitions/01-deferred-transitions
    • 03-sveltekit
      • 08-stores/02-navigating-store
      • 09-errors-and-redirects/01-error-basics
    • 04-advanced-sveltekit/01-hooks/04-handleerror

6 files changed

+6
-6
lines changed

apps/svelte.dev/content/tutorial/01-svelte/02-reactivity/02-deep-state/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Deep state
33
---
44

5-
As we saw in the previous exercise, state reacts to _reassignments_. But it also reacts to _mutations_ we call this _deep reactivity_.
5+
As we saw in the previous exercise, state reacts to _reassignments_. But it also reacts to _mutations_ we call this _deep reactivity_.
66

77
Make `numbers` a reactive array:
88

apps/svelte.dev/content/tutorial/02-advanced-svelte/02-snippets/02-passing-snippets/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Passing snippets to components
33
---
44

5-
Since snippets — like functions — are just values, they can be passed to components as props.
5+
Since snippets — like functions — are just values, they can be passed to components as props.
66

77
Take this `<FilteredList>` component. Its job is to filter the `data` that gets passed into it, but it has no opinions about how that data should be rendered — that's the responsibility of the parent component.
88

apps/svelte.dev/content/tutorial/02-advanced-svelte/05-advanced-transitions/01-deferred-transitions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Then, add them to the `<li>` element, using the `todo.id` property as a key to m
3030
>
3131
```
3232

33-
Now, when you toggle items, they move smoothly to their new location. The non-transitioning items still jump around awkwardly — we can fix that in the next exercise.
33+
Now, when you toggle items, they move smoothly to their new location. The non-transitioning items still jump around awkwardly — we can fix that in the next exercise.

apps/svelte.dev/content/tutorial/03-sveltekit/08-stores/02-navigating-store/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: navigating
33
---
44

5-
The `navigating` store represents the current navigation. When a navigation starts — because of a link click, or a back/forward navigation, or a programmatic `goto` the value of `navigating` will become an object with the following properties:
5+
The `navigating` store represents the current navigation. When a navigation starts — because of a link click, or a back/forward navigation, or a programmatic `goto` the value of `navigating` will become an object with the following properties:
66

77
- `from` and `to` — objects with `params`, `route` and `url` properties
88
- `type` — the type of navigation, e.g. `link`, `popstate` or `goto`

apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/01-error-basics/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function load() {
1515
}
1616
```
1717

18-
Any other error — such as the one in `src/routes/unexpected/+page.server.js` is treated as unexpected:
18+
Any other error — such as the one in `src/routes/unexpected/+page.server.js` is treated as unexpected:
1919

2020
```js
2121
/// file: src/routes/unexpected/+page.server.js

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/01-hooks/04-handleerror/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function handleError({ event, error }) {
1313
}
1414
```
1515

16-
If you navigate to `/the-bad-place`, you'll see this in action — the error page is shown, and if you open the terminal (using the button to the right of the URL bar), you'll see the message from `src/routes/the-bad-place/+page.server.js`.
16+
If you navigate to `/the-bad-place`, you'll see this in action — the error page is shown, and if you open the terminal (using the button to the right of the URL bar), you'll see the message from `src/routes/the-bad-place/+page.server.js`.
1717

1818
Notice that we're _not_ showing the error message to the user. That's because error messages can include sensitive information that at best will confuse your users, and at worst could benefit evildoers. Instead, the error object available to your application — represented as `$page.error` in your `+error.svelte` pages, or `%sveltekit.error%` in your `src/error.html` fallback — is just this:
1919

0 commit comments

Comments
 (0)