Skip to content

Commit e27e3e2

Browse files
authored
Merge pull request Expensify#67467 from shubham1206agra/refactor-onyx-16
[NoQA] Refactored Console/index.ts to replace Onyx.connect with Onyx.connectWithoutView
2 parents 99e0888 + b623f02 commit e27e3e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/Console/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import type {Log} from '@src/types/onyx';
99

1010
let shouldStoreLogs = false;
1111

12-
Onyx.connect({
12+
// We have opted for `connectWithoutView` here as the data is strictly for non-UI use.
13+
Onyx.connectWithoutView({
1314
key: ONYXKEYS.SHOULD_STORE_LOGS,
1415
callback: (val) => {
1516
if (!val) {

0 commit comments

Comments
 (0)