@@ -991,15 +991,15 @@ Onyx.connectWithoutView({
991991const parsedReportActionMessageCache: Record<string, string> = {};
992992
993993let conciergeReportIDOnyxConnect: OnyxEntry<string>;
994- Onyx.connectWithoutView ({
994+ Onyx.connect ({
995995 key: ONYXKEYS.CONCIERGE_REPORT_ID,
996996 callback: (value) => {
997997 conciergeReportIDOnyxConnect = value;
998998 },
999999});
10001000
10011001const 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({
10171017let allPersonalDetails: OnyxEntry<PersonalDetailsList>;
10181018let allPersonalDetailLogins: string[];
10191019let 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
10311031let 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
10381038let allPolicies: OnyxCollection<Policy>;
10391039let 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
10491049let 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
10561056let allReports: OnyxCollection<Report>;
10571057let 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
10931093let betaConfiguration: OnyxEntry<BetaConfiguration> = {};
1094- Onyx.connectWithoutView ({
1094+ Onyx.connect ({
10951095 key: ONYXKEYS.BETA_CONFIGURATION,
10961096 callback: (value) => (betaConfiguration = value ?? {}),
10971097});
10981098
10991099let allTransactions: OnyxCollection<Transaction> = {};
11001100let 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
11261126let 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
11381138let allReportMetadata: OnyxCollection<ReportMetadata>;
11391139const 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
11601160let 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
11721172let 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
11841184let onboarding: OnyxEntry<Onboarding>;
1185- Onyx.connectWithoutView ({
1185+ Onyx.connect ({
11861186 key: ONYXKEYS.NVP_ONBOARDING,
11871187 callback: (value) => (onboarding = value),
11881188});
11891189
11901190let delegateEmail = '';
1191- Onyx.connectWithoutView ({
1191+ Onyx.connect ({
11921192 key: ONYXKEYS.ACCOUNT,
11931193 callback: (value) => {
11941194 delegateEmail = value?.delegatedAccess?.delegate ?? '';
11951195 },
11961196});
11971197
11981198let 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
12061206let cachedSelfDMReportID: OnyxEntry<string>;
1207- Onyx.connectWithoutView ({
1207+ Onyx.connect ({
12081208 key: ONYXKEYS.SELF_DM_REPORT_ID,
12091209 callback: (value) => (cachedSelfDMReportID = value),
12101210});
12111211
12121212let hiddenTranslation = '';
12131213let unavailableTranslation = '';
12141214
1215- Onyx.connectWithoutView ({
1215+ Onyx.connect ({
12161216 key: ONYXKEYS.ARE_TRANSLATIONS_LOADING,
12171217 initWithStoredValues: false,
12181218 callback: (value) => {
0 commit comments