]> git.r.bdr.sh - rbdr/forum/blobdiff - src/routes/a/[id].svelte
Don't remember what this WIP was about
[rbdr/forum] / src / routes / a / [id].svelte
index 1b6c7054ee2a78ec7207f80e5b1b25b41b913d9f..524535e071ece390197ceb10d04538d757691f51 100644 (file)
@@ -1,10 +1,9 @@
-<script>
-  export async function load(ctx) {
-    let id = ctx.page.params.id
-    return { props: { id }}
-  }
+<script lang="ts" context="module">
+       export const load = ({ params: { id } }) => ({ props: { id } });
+</script>
 
-  import Author from '$components/author/author.svelte';
+<script lang="ts">
+       import Author from '$lib/components/author/author.svelte';
 </script>
 
-<Author/>
+<Author />