Skip to content

Commit 2a3d100

Browse files
authored
Merge pull request #81423 from Expensify/jpersaud_fix-onyx-connect-revert
[No QA] Revert incorrect onyx connection changes
2 parents d845164 + 3880e72 commit 2a3d100

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
4444
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4545
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
46-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=399 --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --concurrency=auto",
46+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=418 --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --concurrency=auto",
4747
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
4848
"check-lazy-loading": "ts-node scripts/checkLazyLoading.ts",
4949
"lint-watch": "npx eslint-watch --watch --changed",

src/libs/ReportUtils.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -991,15 +991,15 @@ Onyx.connectWithoutView({
991991
const parsedReportActionMessageCache: Record<string, string> = {};
992992

993993
let conciergeReportIDOnyxConnect: OnyxEntry<string>;
994-
Onyx.connectWithoutView({
994+
Onyx.connect({
995995
key: ONYXKEYS.CONCIERGE_REPORT_ID,
996996
callback: (value) => {
997997
conciergeReportIDOnyxConnect = value;
998998
},
999999
});
10001000

10011001
const defaultAvatarBuildingIconTestID = 'SvgDefaultAvatarBuilding Icon';
1002-
Onyx.connectWithoutView({
1002+
Onyx.connect({
10031003
key: ONYXKEYS.SESSION,
10041004
callback: (value) => {
10051005
// When signed out, val is undefined
@@ -1017,7 +1017,7 @@ Onyx.connectWithoutView({
10171017
let allPersonalDetails: OnyxEntry<PersonalDetailsList>;
10181018
let allPersonalDetailLogins: string[];
10191019
let currentUserPersonalDetails: OnyxEntry<PersonalDetails>;
1020-
Onyx.connectWithoutView({
1020+
Onyx.connect({
10211021
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
10221022
callback: (value) => {
10231023
if (currentUserAccountID) {
@@ -1029,15 +1029,15 @@ Onyx.connectWithoutView({
10291029
});
10301030

10311031
let allReportsDraft: OnyxCollection<Report>;
1032-
Onyx.connectWithoutView({
1032+
Onyx.connect({
10331033
key: ONYXKEYS.COLLECTION.REPORT_DRAFT,
10341034
waitForCollectionCallback: true,
10351035
callback: (value) => (allReportsDraft = value),
10361036
});
10371037

10381038
let allPolicies: OnyxCollection<Policy>;
10391039
let hasPolicies: boolean;
1040-
Onyx.connectWithoutView({
1040+
Onyx.connect({
10411041
key: ONYXKEYS.COLLECTION.POLICY,
10421042
waitForCollectionCallback: true,
10431043
callback: (value) => {
@@ -1047,15 +1047,15 @@ Onyx.connectWithoutView({
10471047
});
10481048

10491049
let allPolicyDrafts: OnyxCollection<Policy>;
1050-
Onyx.connectWithoutView({
1050+
Onyx.connect({
10511051
key: ONYXKEYS.COLLECTION.POLICY_DRAFTS,
10521052
waitForCollectionCallback: true,
10531053
callback: (value) => (allPolicyDrafts = value),
10541054
});
10551055

10561056
let allReports: OnyxCollection<Report>;
10571057
let reportsByPolicyID: ReportByPolicyMap;
1058-
Onyx.connectWithoutView({
1058+
Onyx.connect({
10591059
key: ONYXKEYS.COLLECTION.REPORT,
10601060
waitForCollectionCallback: true,
10611061
callback: (value) => {
@@ -1091,14 +1091,14 @@ Onyx.connectWithoutView({
10911091
});
10921092

10931093
let betaConfiguration: OnyxEntry<BetaConfiguration> = {};
1094-
Onyx.connectWithoutView({
1094+
Onyx.connect({
10951095
key: ONYXKEYS.BETA_CONFIGURATION,
10961096
callback: (value) => (betaConfiguration = value ?? {}),
10971097
});
10981098

10991099
let allTransactions: OnyxCollection<Transaction> = {};
11001100
let reportsTransactions: Record<string, Transaction[]> = {};
1101-
Onyx.connectWithoutView({
1101+
Onyx.connect({
11021102
key: ONYXKEYS.COLLECTION.TRANSACTION,
11031103
waitForCollectionCallback: true,
11041104
callback: (value) => {
@@ -1124,7 +1124,7 @@ Onyx.connectWithoutView({
11241124
});
11251125

11261126
let allReportActions: OnyxCollection<ReportActions>;
1127-
Onyx.connectWithoutView({
1127+
Onyx.connect({
11281128
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
11291129
waitForCollectionCallback: true,
11301130
callback: (actions) => {
@@ -1137,7 +1137,7 @@ Onyx.connectWithoutView({
11371137

11381138
let allReportMetadata: OnyxCollection<ReportMetadata>;
11391139
const allReportMetadataKeyValue: Record<string, ReportMetadata> = {};
1140-
Onyx.connectWithoutView({
1140+
Onyx.connect({
11411141
key: ONYXKEYS.COLLECTION.REPORT_METADATA,
11421142
waitForCollectionCallback: true,
11431143
callback: (value) => {
@@ -1158,7 +1158,7 @@ Onyx.connectWithoutView({
11581158
});
11591159

11601160
let allReportNameValuePair: OnyxCollection<ReportNameValuePairs>;
1161-
Onyx.connectWithoutView({
1161+
Onyx.connect({
11621162
key: ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
11631163
waitForCollectionCallback: true,
11641164
callback: (value) => {
@@ -1170,7 +1170,7 @@ Onyx.connectWithoutView({
11701170
});
11711171

11721172
let allReportsViolations: OnyxCollection<ReportViolations>;
1173-
Onyx.connectWithoutView({
1173+
Onyx.connect({
11741174
key: ONYXKEYS.COLLECTION.REPORT_VIOLATIONS,
11751175
waitForCollectionCallback: true,
11761176
callback: (value) => {
@@ -1182,37 +1182,37 @@ Onyx.connectWithoutView({
11821182
});
11831183

11841184
let onboarding: OnyxEntry<Onboarding>;
1185-
Onyx.connectWithoutView({
1185+
Onyx.connect({
11861186
key: ONYXKEYS.NVP_ONBOARDING,
11871187
callback: (value) => (onboarding = value),
11881188
});
11891189

11901190
let delegateEmail = '';
1191-
Onyx.connectWithoutView({
1191+
Onyx.connect({
11921192
key: ONYXKEYS.ACCOUNT,
11931193
callback: (value) => {
11941194
delegateEmail = value?.delegatedAccess?.delegate ?? '';
11951195
},
11961196
});
11971197

11981198
let reportAttributesDerivedValue: ReportAttributesDerivedValue['reports'];
1199-
Onyx.connectWithoutView({
1199+
Onyx.connect({
12001200
key: ONYXKEYS.DERIVED.REPORT_ATTRIBUTES,
12011201
callback: (value) => {
12021202
reportAttributesDerivedValue = value?.reports ?? {};
12031203
},
12041204
});
12051205

12061206
let cachedSelfDMReportID: OnyxEntry<string>;
1207-
Onyx.connectWithoutView({
1207+
Onyx.connect({
12081208
key: ONYXKEYS.SELF_DM_REPORT_ID,
12091209
callback: (value) => (cachedSelfDMReportID = value),
12101210
});
12111211

12121212
let hiddenTranslation = '';
12131213
let unavailableTranslation = '';
12141214

1215-
Onyx.connectWithoutView({
1215+
Onyx.connect({
12161216
key: ONYXKEYS.ARE_TRANSLATIONS_LOADING,
12171217
initWithStoredValues: false,
12181218
callback: (value) => {

0 commit comments

Comments
 (0)