Skip to content

Commit 5d465d6

Browse files
authored
docs: use for query (#14119)
1 parent b6e9355 commit 5d465d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/20-core-concepts/60-remote-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Query functions can accept an argument, such as the `slug` of an individual post
113113

114114
let { params } = $props();
115115

116-
const post = await getPost(params.slug);
116+
const post = $derived(await getPost(params.slug));
117117
</script>
118118

119119
<h1>{post.title}</h1>

0 commit comments

Comments
 (0)