File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 "test:debug" : " TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand" ,
4747 "perf-test" : " NODE_OPTIONS=--experimental-vm-modules npx reassure" ,
4848 "typecheck" : " NODE_OPTIONS=--max_old_space_size=8192 tsc" ,
49- "lint" : " NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=288 --cache --cache-location=node_modules/.cache/eslint" ,
49+ "lint" : " NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=285 --cache --cache-location=node_modules/.cache/eslint" ,
5050 "lint-changed" : " NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh" ,
5151 "lint-watch" : " npx eslint-watch --watch --changed" ,
5252 "shellcheck" : " ./scripts/shellCheck.sh" ,
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ import type {ConflictData} from '@src/types/onyx/Request';
2121import { isOffline , onReconnection } from './NetworkStore' ;
2222
2323let shouldFailAllRequests : boolean ;
24- Onyx . connect ( {
24+ // Use connectWithoutView since this is for network data and don't affect to any UI
25+ Onyx . connectWithoutView ( {
2526 key : ONYXKEYS . NETWORK ,
2627 callback : ( network ) => {
2728 if ( ! network ) {
@@ -78,7 +79,8 @@ function flushOnyxUpdatesQueue() {
7879
7980let queueFlushedDataToStore : OnyxUpdate [ ] = [ ] ;
8081
81- Onyx . connect ( {
82+ // Use connectWithoutView since this is for network queue and don't affect to any UI
83+ Onyx . connectWithoutView ( {
8284 key : ONYXKEYS . QUEUE_FLUSHED_DATA ,
8385 callback : ( val ) => {
8486 if ( ! val ) {
@@ -227,7 +229,8 @@ function flush(shouldResetPromise = true) {
227229 }
228230
229231 // Ensure persistedRequests are read from storage before proceeding with the queue
230- const connection = Onyx . connect ( {
232+ // Use connectWithoutView since this is for network queue and don't affect to any UI
233+ const connection = Onyx . connectWithoutView ( {
231234 key : ONYXKEYS . PERSISTED_REQUESTS ,
232235 // We exceptionally opt out of reusing the connection here to avoid extra callback calls due to
233236 // an existing connection already made in PersistedRequests.ts.
You can’t perform that action at this time.
0 commit comments