Closed hoangvvo closed 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
Axios is also super heavy!! https://bundlephobia.com/result?p=axios@0.19.1
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.