diff --git a/package.json b/package.json index f21218de27ee..60019124658d 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=294 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=292 --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/actions/PersistedRequests.ts b/src/libs/actions/PersistedRequests.ts index 2ed61cf7318a..c830e0441335 100644 --- a/src/libs/actions/PersistedRequests.ts +++ b/src/libs/actions/PersistedRequests.ts @@ -7,7 +7,8 @@ import type {Request} from '@src/types/onyx'; let persistedRequests: Request[] = []; let ongoingRequest: Request | null = null; -Onyx.connect({ +// We have opted for connectWithoutView here as this module is strictly non-UI +Onyx.connectWithoutView({ key: ONYXKEYS.PERSISTED_REQUESTS, callback: (val) => { Log.info('[PersistedRequests] hit Onyx connect callback', false, {isValNullish: val == null}); @@ -24,7 +25,8 @@ Onyx.connect({ } }, }); -Onyx.connect({ +// We have opted for connectWithoutView here as this module is strictly non-UI +Onyx.connectWithoutView({ key: ONYXKEYS.PERSISTED_ONGOING_REQUESTS, callback: (val) => { ongoingRequest = val ?? null;