From 8f7ef4317b64c7a7eb162b394eb12a982c365b74 Mon Sep 17 00:00:00 2001 From: Anbarasu Date: Tue, 18 Jun 2024 19:48:27 +0530 Subject: [PATCH] fix: break synchronous execution of recursive function (#8772) --- packages/nc-gui/store/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/store/notification.ts b/packages/nc-gui/store/notification.ts index 71fe9cb05b..403948bf48 100644 --- a/packages/nc-gui/store/notification.ts +++ b/packages/nc-gui/store/notification.ts @@ -28,7 +28,7 @@ export const useNotification = defineStore('notificationStore', () => { unreadCount.value = unreadCount.value + 1 } - await pollNotifications() + setTimeout(pollNotifications, 0) } catch (e) { // If network error, retry after 2 seconds setTimeout(pollNotifications, 2000)