diff --git a/package.json b/package.json index 5a00928e823d..2234cca4a895 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=224 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=223 --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/subscribeToFullReconnect.ts b/src/libs/subscribeToFullReconnect.ts index c2caca5a17b7..ec0db28e17cc 100644 --- a/src/libs/subscribeToFullReconnect.ts +++ b/src/libs/subscribeToFullReconnect.ts @@ -4,7 +4,9 @@ import {reconnectApp} from './actions/App'; import Log from './Log'; let lastFullReconnectTime = ''; -Onyx.connect({ +// We do not depend on updates on the UI to determine the last full reconnect time, +// so we can use `connectWithoutView` here. +Onyx.connectWithoutView({ key: ONYXKEYS.LAST_FULL_RECONNECT_TIME, callback: (value) => { lastFullReconnectTime = value ?? '';