Notiflix icon indicating copy to clipboard operation
Notiflix copied to clipboard

Multiple Notiflix.Confirm's

Open altayevrim opened this issue 7 months ago • 0 comments

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;
}

altayevrim avatar Sep 09 '25 20:09 altayevrim