hoangvvo / nextjs-mongodb-app

A Next.js and MongoDB web application, designed with simplicity for learning and real-world applicability in mind.
https://nextjs-mongodb.now.sh/
MIT License
1.53k stars 286 forks source link

Replace axioswal with fetch #41

Closed hoangvvo closed 4 years ago

hoangvvo commented 4 years ago

axioswal used to be my library to parse api response and show sweetalert2 dialog accordingly. However, this library is not ideal in real-life (implementation difference). This also makes this project opinionated.

The replacement can be found at fetchSwal.js.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with ZEIT Now (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/hoangvvo/nextjs-mongodb-app/istst67el ✅ Preview: https://nextjs-mongodb-app-git-replace-axioswal-with-fetch.hoangvvo.now.sh

hoangvvo commented 4 years ago

Axios is also super heavy!! https://bundlephobia.com/result?p=axios@0.19.1