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

Bug: toastOptions.duration affects toast.promise loading

Open philipaarseth opened this issue 4 years ago • 3 comments

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.

philipaarseth avatar Nov 12 '21 15:11 philipaarseth

Can I work on this?

sairajchouhan avatar Dec 22 '21 16:12 sairajchouhan

Confirmed

devnomic avatar Jan 04 '23 03:01 devnomic

Confirmed at v2.4.0

percy507 avatar Feb 01 '23 12:02 percy507