diff --git a/site/content/examples/20-miscellaneous/01-hacker-news/App.svelte b/site/content/examples/20-miscellaneous/01-hacker-news/App.svelte
index 19d1f29bc4..2213914430 100644
--- a/site/content/examples/20-miscellaneous/01-hacker-news/App.svelte
+++ b/site/content/examples/20-miscellaneous/01-hacker-news/App.svelte
@@ -6,10 +6,6 @@
let item;
let page;
- onMount(() => {
- hashchange();
- });
-
async function hashchange() {
// the poor man's router!
const path = window.location.hash.slice(1);
@@ -26,6 +22,8 @@
window.location.hash = '/top/1';
}
}
+
+ onMount(hashchange);
-« back
+« back
diff --git a/site/content/examples/20-miscellaneous/01-hacker-news/List.svelte b/site/content/examples/20-miscellaneous/01-hacker-news/List.svelte
index 361db9905d..a20d6c5504 100644
--- a/site/content/examples/20-miscellaneous/01-hacker-news/List.svelte
+++ b/site/content/examples/20-miscellaneous/01-hacker-news/List.svelte
@@ -1,24 +1,21 @@