Skip to content

Commit 1495217

Browse files
authored
Merge pull request Expensify#67637 from allgandalf/patch-27
[No QA]: Remove Onyx.connect() for the key: ONYXKEYS.NETWORK in src/libs/Pusher/index.native.ts
2 parents 37e5ee1 + 48ad41a commit 1495217

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
4747
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4848
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
49-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=249 --cache --cache-location=node_modules/.cache/eslint",
49+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=248 --cache --cache-location=node_modules/.cache/eslint",
5050
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
5151
"lint-watch": "npx eslint-watch --watch --changed",
5252
"shellcheck": "./scripts/shellCheck.sh",

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)