mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
12 lines
262 B
TypeScript
12 lines
262 B
TypeScript
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,
|
|
});
|
|
}
|