From 298dadda4715dfc721ef536bd22a0b265b50b792 Mon Sep 17 00:00:00 2001 From: allgandalf Date: Fri, 22 Aug 2025 10:31:06 +0530 Subject: [PATCH 1/2] use connectWithoutView --- src/libs/subscribeToFullReconnect.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ?? ''; From 2e0da8e62a3efbcf99e250613c77ddf1be282af8 Mon Sep 17 00:00:00 2001 From: allgandalf Date: Fri, 22 Aug 2025 10:31:18 +0530 Subject: [PATCH 2/2] update max count --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 801341ed68bb..68695cac4b7d 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=244 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=243 --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",