mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Signed-off-by: Will Pfleger <pfleger.will@gmail.com> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
import { useQuery } from "@tanstack/react-query";
|
|
|
|
import { getIdentity } from "@/shared/api/tauriIdentity";
|
|
|
|
export function useIdentityQuery() {
|
|
return useQuery({
|
|
queryKey: ["identity"],
|
|
queryFn: getIdentity,
|
|
staleTime: Number.POSITIVE_INFINITY,
|
|
});
|
|
}
|