Closed CandyACE closed 3 months ago
toast.promise( () => new Promise((resolve) => { setTimeout(() => { resolve({ name: 'Vue Sonner' }) }, 2000) }), { loading: () => h('div', { innerHTML: 'Loading...' }), success: (data: any) => { return `${data.name} toast has been added` }, error: (data: any) => 'Error', duration: 10000000 } )
Fix the issue that Success cannot be displayed correctly when the Promise is successful
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Fix the issue that Success cannot be displayed correctly when the Promise is successful