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) {