toast.loading() 在 nextjs 14 中不起作用

作者: MauricioKruijer创建于 2023年11月1日更新于 2026年4月19日

Hi there, thanks for releasing this amazing product! I would like to use it in my nextjs project and I'm running into a few issues with `toast.promise()` and `toast.loading()`. I am trying to disable a submit button -> show loading toast -> await my action -> show success (or error). Which would be the expected behaviour, however, I only get the loading toast the second time I click the button. The success toast is more consistent.

内容来源: timolins/react-hot-toast