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 33c9363 commit d1fec18Copy full SHA for d1fec18
package.json
@@ -14,7 +14,7 @@
14
"dependencies": {
15
"@elysiajs/eden": "1.4.5",
16
"@prisma/client": "7.0.1",
17
- "@tanstack/react-query": "5.90.11",
+ "@tanstack/react-query": "5.87.4",
18
"elysia": "1.4.17",
19
"jose": "6.1.3",
20
"next": "16.0.6",
src/hooks/user-hook.ts
@@ -11,6 +11,10 @@ export function useMeQuery() {
11
});
12
}
13
-const id = "replace-with-id";
-
-const test = await rpc.api.user[id].get();
+export function useUserQuery(userId: string) {
+ return useQuery({
+ queryKey: queryKeys.user(userId),
+ enabled: false,
+ queryFn: async () => handleEden(await rpc.api.user[userId].get()),
+ });
+}
0 commit comments