cal.pub0.org/apps/web/lib/hooks/useMeQuery.ts

14 lines
232 B
TypeScript
Raw Normal View History

2022-05-04 21:05:57 +00:00
import { trpc } from "../trpc";
export function useMeQuery() {
const meQuery = trpc.useQuery(["viewer.me"], {
retry(failureCount) {
return failureCount > 3;
},
});
return meQuery;
}
export default useMeQuery;