diff --git a/package.json b/package.json index 8b04814c2c22..64ebdb78a1c4 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand", "perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure", "typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc", - "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=274 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=273 --cache --cache-location=node_modules/.cache/eslint", "lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh", "lint-watch": "npx eslint-watch --watch --changed", "shellcheck": "./scripts/shellCheck.sh", diff --git a/src/libs/HttpUtils.ts b/src/libs/HttpUtils.ts index 337e2e578f6c..90ce7c50cedd 100644 --- a/src/libs/HttpUtils.ts +++ b/src/libs/HttpUtils.ts @@ -22,7 +22,8 @@ const ABORT_COMMANDS = { type AbortCommand = keyof typeof ABORT_COMMANDS; -Onyx.connect({ +// We have used `connectWithoutView` here because HttpUtils is not connected to any UI component +Onyx.connectWithoutView({ key: ONYXKEYS.NETWORK, callback: (network) => { if (!network) {