{{#if framework == "nextjs"}} "use client"; {{/if}} import type { IUserResponse } from "../types/auth.type"; import { useQuery } from "@tanstack/react-query"; import { getMeRequest } from "../services/auth.api"; export const AUTH_QUERY_KEYS = { me: ["auth", "me"] as const, }; export const useMeQuery = () => { return useQuery({ queryKey: AUTH_QUERY_KEYS.me, queryFn: getMeRequest, retry: false, }); };