* migrate router * createTRPCReact * frontend 1 * random format change * frontend 2 * withQuery * form router * TS-ERROR: proxy on utils-client * inferance * ssg * reuse * trpc rc4 * Apply suggestions from code review * skip test * move skip one level up * whops * rc 6 with new setData func Co-authored-by: zomars <zomars@me.com>
14 lines
249 B
TypeScript
14 lines
249 B
TypeScript
import { trpc } from "@calcom/trpc/react";
|
|
|
|
export function useMeQuery() {
|
|
const meQuery = trpc.viewer.me.useQuery(undefined, {
|
|
retry(failureCount) {
|
|
return failureCount > 3;
|
|
},
|
|
});
|
|
|
|
return meQuery;
|
|
}
|
|
|
|
export default useMeQuery;
|