Here is my hook ```ts import { useQuery } from "re...
# support-questions-legacy
b
Here is my hook
Copy code
ts
import { useQuery } from "react-query";
import { useAxios } from "./useAxios";

export const useGetPatients = () => {
  const { axios } = useAxios();
  return useQuery(["patients"], () =>
    axios.get("/patient", { withCredentials: true })
  );
};