Skip to content

Commit

Permalink
fix: Axios 타입 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
2NNS-V committed Sep 5, 2024
1 parent 508574d commit 88c663a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hooks/useAxios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ const instance = axios.create({
withCredentials: true,
});

export default function useAxios<T>(
config: AxiosRequestConfig,
dependencies: ReadonlyArray<React.DependencyList> = [],
) {
export default function useAxios<T>(config: AxiosRequestConfig, dependencies: ReadonlyArray<any> = []) {
const [data, setData] = React.useState<T | null>(null);
const [loading, setLoading] = React.useState<boolean>(false);
const [error, setError] = React.useState<string | null>(null);
Expand Down

0 comments on commit 88c663a

Please sign in to comment.