diff --git a/src/hooks/useSWRAxios.ts b/src/hooks/useSWRAxios.ts index b541aed..8e5b3e9 100644 --- a/src/hooks/useSWRAxios.ts +++ b/src/hooks/useSWRAxios.ts @@ -1,6 +1,6 @@ import useSWR from 'swr' import axios, { - AxiosError, + AxiosError, AxiosHeaders, AxiosRequestConfig, AxiosResponse, AxiosResponseTransformer, @@ -26,7 +26,9 @@ export default function useSWRAxios( headers: {}, status: 200, statusText: 'Initial', - config: {}, + config: { + headers: new AxiosHeaders(), + }, } const fallbackData: AxiosResponse = { ...initFallbackData, ...axiosFallbackData }