Skip to content

Commit c4f28a1

Browse files
docs: add missing async to remote functions example (#14709)
1 parent 26b27f5 commit c4f28a1

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
@@ -1147,7 +1147,7 @@ export const getProfile = query(async () => {
11471147

11481148
// this query could be called from multiple places, but
11491149
// the function will only run once per request
1150-
const getUser = query(() => {
1150+
const getUser = query(async () => {
11511151
const { cookies } = getRequestEvent();
11521152

11531153
return await findUser(cookies.get('session_id'));

0 commit comments

Comments
 (0)