Replies: 4 comments 3 replies
-
1. fetchcallback 기반 API인 XMLHttpRequest와 달리, Fetch API는 서비스 워커에서도 쉽게 사용할 수 있는 Promise기반의 개선된 대체제. CORS를 포함한 고급 개념을 HTTP 확장
|
Beta Was this translation helpful? Give feedback.
1 reply
-
2. axios장점
|
Beta Was this translation helpful? Give feedback.
2 replies
-
3. KY Libary
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Axios가 확실히 다양한 편리한 기능(JSON 자동 변환, response timeout 등)을 제공해준다. fetch, ky에서도 물론 구현이 가능한 기능이지만 코드가 더 복잡해진다.
결론적으로 우리는, 위 프로젝트를 참고하여 Axios를 사용하되 Next.js에서 Fetch에만 지원해주는 캐싱같은 경우 직접 커스텀하기로 결정하였다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions