You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I create a toast with promise it closes before the promise is even resolved. The behaviour is that it follows timeout value and promise is only used to update the icon, which should not be the expected behaviour.
HeroUI Version
2.7.2
Describe the bug
Whenever I create a toast with promise it closes before the promise is even resolved. The behaviour is that it follows
timeout
value and promise is only used to update the icon, which should not be the expected behaviour.Your Example Website or App
Steps to Reproduce the Bug or Issue
addToast({
title: "Toast Title",
description: "Toast Description",
promise: new Promise((resolve) => setTimeout(resolve, 10000)),
});
Expected behavior
The toast should only close once the promise is resolved not before that.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: