cal.pub0.org/packages/trpc/react/hooks/useMeQuery.ts

14 lines
238 B
TypeScript

import { trpc } from "../trpc";
export function useMeQuery() {
const meQuery = trpc.viewer.me.useQuery(undefined, {
retry(failureCount) {
return failureCount > 3;
},
});
return meQuery;
}
export default useMeQuery;