react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

Make toast.promise accept optional message types

Open tobiasbueschel opened this issue 4 years ago • 1 comments

At the moment loading is required for any toast.promise calls, but what if someone wants to use toast.promise but doesn't want to show a toast for the loading state but only for the success or error state?

https://github.com/timolins/react-hot-toast/blob/67bdc5b0895d1b57722991888a87d7c6461b5190/src/core/toast.ts#L65-L74

tobiasbueschel avatar Feb 09 '21 15:02 tobiasbueschel

Great suggestion. I'll look into a related PR soon https://github.com/timolins/react-hot-toast/pull/179

timolins avatar Apr 29 '23 18:04 timolins