> For the complete documentation index, see [llms.txt](https://tech.x2bee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tech.x2bee.com/dev-guide/developer-guide-en/pjt-prepare/publish-your-docs/store-front-framework-next.js/04.-data-fetching.md).

# 04. Data Fetching

This chapter explains data communication methods.

In previous-generation frameworks, REST API communication was primarily handled with axios based on XMLHttpRequest, but recently this has been replaced by the newer native JavaScript communication method, the Fetch API.

Since the Fetch API is based on Promises by default, it makes asynchronous requests easier to write and lets you handle responses better.
