timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.86k stars 331 forks source link

Fix issue #190 #191

Open madhurjain opened 2 years ago

madhurjain commented 2 years ago

If the server returns a Non-Ok HTTP status code (anything below 200 or above 299), then an error toast will be displayed. Not sure if the error should include the statusText (provides limited information), response text (might be too verbose?).

Note: I am not a typescript/javascript expert, kindly review and I would be happy to make more changes.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-hot-toast ✅ Ready (Inspect) Visit Preview Dec 30, 2022 at 5:48AM (UTC)