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

14 lines
277 B
TypeScript

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