react-hot-toast
react-hot-toast copied to clipboard
Make toast.promise accept optional message types
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
Great suggestion. I'll look into a related PR soon https://github.com/timolins/react-hot-toast/pull/179