14 lines
232 B
TypeScript
14 lines
232 B
TypeScript
|
import { trpc } from "../trpc";
|
||
|
|
||
|
export function useMeQuery() {
|
||
|
const meQuery = trpc.useQuery(["viewer.me"], {
|
||
|
retry(failureCount) {
|
||
|
return failureCount > 3;
|
||
|
},
|
||
|
});
|
||
|
|
||
|
return meQuery;
|
||
|
}
|
||
|
|
||
|
export default useMeQuery;
|