useApi.ts 225 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 import { useMemo } from "react"; import ky from "ky"; // TODO: Implement Auth export function useApi() { return useMemo(() => { return ky.extend({ hooks: { beforeRequest: [], }, }); }, []); }