From c23135f92436eab14c37546d3f6f130f6c01bd92 Mon Sep 17 00:00:00 2001 From: Gandalf Date: Fri, 1 Aug 2025 15:24:08 +0530 Subject: [PATCH 1/2] Update Navigation.ts --- src/libs/Navigation/Navigation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/Navigation/Navigation.ts b/src/libs/Navigation/Navigation.ts index d9ae1a7cded1..92dd4a9f0555 100644 --- a/src/libs/Navigation/Navigation.ts +++ b/src/libs/Navigation/Navigation.ts @@ -43,7 +43,8 @@ const SET_UP_2FA_ROUTES: Route[] = [ ]; let account: OnyxEntry; -Onyx.connect({ +// We have used `connectWithoutView` here because it is not connected to any UI +Onyx.connectWithoutView({ key: ONYXKEYS.ACCOUNT, callback: (value) => { account = value; From b4cbe79e5734819ecd98676814dff0ac5447e96b Mon Sep 17 00:00:00 2001 From: Gandalf Date: Fri, 1 Aug 2025 15:26:02 +0530 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 50cc3a255de3..fe017fe69208 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=329 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=328 --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",