Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Revert "[fix] load images in Part 1 / Lifecycle / onMount excercise" #188

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: onMount
---

> The images in this exercise don't currently work. You can switch to the old tutorial instead: https://svelte.dev/tutorial/onmount

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.

The one you'll use most frequently is `onMount`, which runs after the component is first rendered to the DOM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
{#each photos as photo}
<figure>
<img
crossorigin="anonymous"
src={photo.thumbnailUrl}
alt={photo.title}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
{#each photos as photo}
<figure>
<img
crossorigin="anonymous"
src={photo.thumbnailUrl}
alt={photo.title}
/>
Expand Down