9447f16b82
* WIP * WIP * Type and migration fixes * Adds missing default import * Fixes import * Fixes tRPC imports in App Store * Migrate stripe helpers * WIP * Type fixes * Type fix? * Test fixes * Adds missing stripe packages * Moved queries to lib instead Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
14 lines
243 B
TypeScript
14 lines
243 B
TypeScript
import { trpc } from "@calcom/trpc/react";
|
|
|
|
export function useMeQuery() {
|
|
const meQuery = trpc.useQuery(["viewer.me"], {
|
|
retry(failureCount) {
|
|
return failureCount > 3;
|
|
},
|
|
});
|
|
|
|
return meQuery;
|
|
}
|
|
|
|
export default useMeQuery;
|