react-hot-toast
react-hot-toast copied to clipboard
Bug: toastOptions.duration affects toast.promise loading
Found what looks to be a bug: the default duration in toastOptions affect the loading part of toast.promise. So instead of it loading to infinity, it will only load for (in this case) 3000ms and then disappear, and then later on the success toast will appear.
toastOptions={{
duration: 3000, // this affects toast.promise
}}
https://user-images.githubusercontent.com/31098164/141494858-0ba86c78-7fde-4c35-88ba-bea3eb64d11d.mov
Was testing on 2.1.0, but couldn't find anything in 2.1.1 commits pertaining to this.
Can I work on this?
Confirmed
Confirmed at v2.4.0