From 1ffc1c257a4cc1c0f655c74277cdee577b2e97e8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 29 May 2024 18:46:42 +0800 Subject: [PATCH] Use setTimeout instead --- src/app.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index e74246b4..0e9a52ca 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -126,13 +126,13 @@ setInterval(() => { // Related: https://github.com/vitejs/vite/issues/10600 setTimeout(() => { for (const icon in ICONS) { - queueMicrotask(() => { + setTimeout(() => { if (Array.isArray(ICONS[icon])) { ICONS[icon][0]?.(); } else { ICONS[icon]?.(); } - }); + }, 1); } }, 5000);