mirror of
https://github.com/block/buzz.git
synced 2026-12-01 13:42:45 +00:00
feat(desktop): connect chat to relay (#6)
This commit is contained in:
11
desktop/src/shared/api/hooks.ts
Normal file
11
desktop/src/shared/api/hooks.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import { getIdentity } from "@/shared/api/tauri";
|
||||
|
||||
export function useIdentityQuery() {
|
||||
return useQuery({
|
||||
queryKey: ["identity"],
|
||||
queryFn: getIdentity,
|
||||
staleTime: Number.POSITIVE_INFINITY,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user