-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toasts Closing Unexpectedly on First Page Load #105
Comments
When triggering a toast with a set duration, adding additional toasts before the first toast’s duration elapses causes all toasts to disappear. After this, the functionality seems to return to normal. This appears to be a bug with the package. I haven’t had time to investigate the root cause, but I wanted to share a potential workaround:
Here’s an example: onMounted(() => {
toast('', { duration: delay });
setTimeout(() => {
initialized.value = true;
// Add a initial toasts/watchers here as necessary...
}, delay.value * 2);
}); <Toaster v-show="initialized" /> |
Hi @DanielHudson, I noticed the issue with toasts closing unexpectedly after triggering multiple notifications appeared starting after version 1.1.5 of If you haven’t already, you might want to test this behavior with versions before 1.2.0 (e.g., 1.1.5) to confirm the regression. For now, it could be helpful to check the release notes or open a bug report to ensure the maintainers are aware of the issue. Let me know if you need further details or testing! 😊 |
Bump |
Description
When the page is loaded for the first time, all toast notifications close together with the first toast. However, if subsequent toasts have shorter durations than the first, they disappear as expected. Once all toasts are closed during the initial occurrence, the issue resolves, and everything works correctly from that point onward.
Steps to Reproduce
Expected Behavior
Toast notifications should observe their individual durations from the first load onward.
Additional Information
Suggestions
Investigate how toast durations are being handled during the initial rendering and loading phase.
The text was updated successfully, but these errors were encountered: