Skip to content

Commit 3819be8

Browse files
Remove invalid statement in onMount tutorial (#92)
Removes an old reference in the onMount tutorial as the reference has been moved to the advanced section and is no longer before this part. See: https://learn.svelte.dev/tutorial/onmount (Part 1 / Lifecycle / onMount) Removed section points to https://learn.svelte.dev/tutorial/bind-this (Part 3 / Advanced bindings / This) as "before"
1 parent 20033a8 commit 3819be8

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/01-svelte/07-lifecycle/01-onmount

1 file changed

+1
-1
lines changed

content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: onMount
44

55
Every component has a _lifecycle_ that starts when it is created, and ends when it is destroyed. There are a handful of functions that allow you to run code at key moments during that lifecycle.
66

7-
The one you'll use most frequently is `onMount`, which runs after the component is first rendered to the DOM. We briefly encountered it [earlier](/tutorial/bind-this) when we needed to interact with a `<canvas>` element after it had been rendered.
7+
The one you'll use most frequently is `onMount`, which runs after the component is first rendered to the DOM.
88

99
We'll add an `onMount` handler that loads some data over the network:
1010

0 commit comments

Comments
 (0)