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/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;