]> git.r.bdr.sh - rbdr/forum/blobdiff - src/routes/a/[id].svelte
Update documentation
[rbdr/forum] / src / routes / a / [id].svelte
index 1b6c7054ee2a78ec7207f80e5b1b25b41b913d9f..5f8c951298e6102e05e67e5aef630bb30a71bf9c 100644 (file)
@@ -1,10 +1,13 @@
-<script>
-  export async function load(ctx) {
-    let id = ctx.page.params.id
-    return { props: { id }}
-  }
+<script context="module">
+       export const load = ({
+         page: {
+           params: { id }
+         }
+       }) => ({ props: { id } });
+</script>
 
-  import Author from '$components/author/author.svelte';
+<script>
+       import Author from '$/components/author/author.svelte';
 </script>
 
-<Author/>
+<Author />