Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 19x 19x 6x 6x 6x | import { queryClient } from "../query-client";
import { queryKeys } from "../query-keys";
/** Get proId from the cached pro/me query data */
export function getCachedProId(): string | null {
const data = queryClient.getQueryData<{ proId?: string }>(
queryKeys.pro.me(),
);
return data?.proId ?? null;
}
export const STALE_2MIN = 1000 * 60 * 2;
export const STALE_5MIN = 1000 * 60 * 5;
export const STALE_1HR = 1000 * 60 * 60;
|