mzohaibqc / svelte-toasts

A highly configurable notification/toast component with individual toast state management capabilities.
https://mzohaibqc.github.io/svelte-toasts/
MIT License
42 stars 6 forks source link

Fix not being able to make more toasts at the same time. #11

Open gamecraftCZ opened 10 months ago

gamecraftCZ commented 10 months ago

Creating more toasts at the same time didn't work because uid of them was the same (Date.now()).
I have changed it to be a counter, so it is still unique, but not dependent on when called.