Skip to content

Commit b1542c8

Browse files
authored
Update Pusher file index.native.ts
1 parent 2cbe57a commit b1542c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/Pusher/index.native.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import type {Args, ChunkedDataEvents, EventCallbackError, EventData, PusherEvent
1313
import type PusherModule from './types';
1414

1515
let shouldForceOffline = false;
16-
Onyx.connect({
16+
// We have used `connectWithoutView` here because it is not connected to any UI
17+
Onyx.connectWithoutView({
1718
key: ONYXKEYS.NETWORK,
1819
callback: (network) => {
1920
if (!network) {

0 commit comments

Comments
 (0)