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
I'm using SvelteKit and this library to display toast notifications.
Making a project I discovered that calling any notifier function from the onMount of Svelte will duplicate the toast.
Steps to reproduce bug:
npm create svelte@latest
my-app
cd my-app
npm install
npm i -D @beyonk/svelte-notifications
npm run dev
Paste the following code in the main +page.svelte:
<script>
import { NotificationDisplay, notifier } from '@beyonk/svelte-notifications'
import { onMount } from "svelte"
let n
onMount(()=>{
notifier.success('test1', 7000)
notifier.success('test2', 7000)
console.log('test1')
console.log('test2')
})
</script>
<NotificationDisplay bind:this={n} />
The text was updated successfully, but these errors were encountered:
I'm using SvelteKit and this library to display toast notifications.
Making a project I discovered that calling any notifier function from the
onMount
of Svelte will duplicate the toast.Steps to reproduce bug:
Paste the following code in the main
+page.svelte
:The text was updated successfully, but these errors were encountered: