Skip to content

Commit

Permalink
Merge branch 'tanhauhau/gh-328'
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Apr 20, 2022
2 parents 666929a + 3e5846c commit 0a086c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/content/examples/06-lifecycle/00-onmount/App.svelte
Expand Up @@ -4,7 +4,7 @@
let photos = [];
onMount(async () => {
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`);
const res = await fetch(`/tutorial/api/album`);
photos = await res.json();
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion site/content/tutorial/07-lifecycle/01-onmount/text.md
Expand Up @@ -15,7 +15,7 @@ We'll add an `onMount` handler that loads some data over the network:
let photos = [];
onMount(async () => {
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`);
const res = await fetch(`/tutorial/api/album`);
photos = await res.json();
});
</script>
Expand Down

0 comments on commit 0a086c8

Please sign in to comment.