diff --git a/package.json b/package.json index cbeaa72ffc7e..5f19f5152f79 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=315 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=314 --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/ActiveClientManager/index.ts b/src/libs/ActiveClientManager/index.ts index 96f7cd6d0fa2..ba3d954f8050 100644 --- a/src/libs/ActiveClientManager/index.ts +++ b/src/libs/ActiveClientManager/index.ts @@ -24,7 +24,8 @@ let beforeunloadListenerAdded = false; */ const isReady: IsReady = () => savedSelfPromise; -Onyx.connect({ +// We have opted for `connectWithoutView` here as this code is not connected to UI at all. +Onyx.connectWithoutView({ key: ONYXKEYS.ACTIVE_CLIENTS, callback: (val) => { if (!val) {