From da7f0b843b0abf963fa0b7da678ca4f60038bc76 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Fri, 1 Aug 2025 15:27:26 +0530 Subject: [PATCH] Update index.ts --- src/libs/Pusher/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/Pusher/index.ts b/src/libs/Pusher/index.ts index 69d873abc6aa..fa8bae1cf091 100644 --- a/src/libs/Pusher/index.ts +++ b/src/libs/Pusher/index.ts @@ -21,7 +21,8 @@ import type { import type PusherModule from './types'; let shouldForceOffline = false; -Onyx.connect({ +// We have used `connectWithoutView` here because it is not connected to any UI +Onyx.connectWithoutView({ key: ONYXKEYS.NETWORK, callback: (network) => { if (!network) {