timolins / react-hot-toast

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

Fix: Replacing `loading` with `pending` in `toast.promise()` #252

Closed j471n closed 1 year ago

j471n commented 1 year ago

When you call toast.promise() it doesn't recognize loading it takes pending as argument.

You can see in the following image

image

It only recognize three things:

That's why I am updating it in the docs.

PS. It was mistake by me this pull request was for another repo that's why I am closing it.

vercel[bot] commented 1 year 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 14, 2022 at 6:43AM (UTC)