Skip to content

Commit 0a086c8

Browse files
committed
Merge branch 'tanhauhau/gh-328'
2 parents 666929a + 3e5846c commit 0a086c8

File tree

2 files changed

+2
-2
lines changed
  • site/content

2 files changed

+2
-2
lines changed

site/content/examples/06-lifecycle/00-onmount/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
let photos = [];
55
66
onMount(async () => {
7-
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`);
7+
const res = await fetch(`/tutorial/api/album`);
88
photos = await res.json();
99
});
1010
</script>

site/content/tutorial/07-lifecycle/01-onmount/text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ We'll add an `onMount` handler that loads some data over the network:
1515
let photos = [];
1616
1717
onMount(async () => {
18-
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`);
18+
const res = await fetch(`/tutorial/api/album`);
1919
photos = await res.json();
2020
});
2121
</script>

0 commit comments

Comments
 (0)