Notiflix
Notiflix copied to clipboard
Multiple Notiflix.Confirm's
Hi,
An awesome library, I really liked it. But I have one problem, I am trying to use it with Laravel Echo and generate Confirm's on the fly.
But if there are multiple notifications, Notiflix shows only one of them. I tried to queue them up like this but it didn't help either. Any ideas how to achieve this?
Teşekkürler, ve eline sağlık!
async function processQueue() {
if (notificationActive) return;
notificationActive = true;
while (notificationQueue.length > 0) {
const event = notificationQueue.shift();
await showNotification(event); // callback gelene kadar bekle
}
notificationActive = false;
}