We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b27f5 commit c4f28a1Copy full SHA for c4f28a1
documentation/docs/20-core-concepts/60-remote-functions.md
@@ -1147,7 +1147,7 @@ export const getProfile = query(async () => {
1147
1148
// this query could be called from multiple places, but
1149
// the function will only run once per request
1150
-const getUser = query(() => {
+const getUser = query(async () => {
1151
const { cookies } = getRequestEvent();
1152
1153
return await findUser(cookies.get('session_id'));
0 commit comments