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
Cannot create a new toasts after dismissing a toasts.
Expected Behavior:
Calling a new toasts should appear even after dismissing a toasts. Atleast it works this way in emilkowalski's sonner library.
Example:
<scriptsetuplang="ts">import { Toaster, toast } from'vue-sonner'const handleClick =async () => {// Show a toastconst loadingToast =toast.loading('Loading...')// Simulate an API callawaitnewPromise((resolve) =>setTimeout(resolve, 4000))// Dismiss the toaststoast.dismiss(loadingToast)// Show a success toast// ERROR: NOT SHOWINGtoast.success('Success!')}</script>
<template>
<button @click="handleClick">Tes</button>
<Toaster />
</template>
Demo
vue-sonner-demo.webm
Logs
The text was updated successfully, but these errors were encountered:
Enviroment
System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Memory: 6.59 GB / 15.45 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 21.7.1 - /usr/bin/node
Yarn: 1.22.21 - /usr/bin/yarn
npm: 10.4.0 - /usr/local/bin/npm
pnpm: 8.15.4 - /usr/bin/pnpm
bun: 1.0.25 - ~/.bun/bin/bun
Browsers:
Chrome: 122.0.6261.111
Dependencies:
Issue
Cannot create a new toasts after dismissing a toasts.
Expected Behavior:
Calling a new toasts should appear even after dismissing a toasts. Atleast it works this way in emilkowalski's sonner library.
Example:
Demo
vue-sonner-demo.webm
Logs
The text was updated successfully, but these errors were encountered: