Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
27c4e07
Bump Onyx to 3.0.75
fabioh8010 May 19, 2026
cd5720f
Remove Onyx patch
fabioh8010 May 19, 2026
8fb2246
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 May 21, 2026
2b8620f
Merge commit '321ab1822add112c84f386094bc4f1dd7ef21559' into feature/…
fabioh8010 Jun 3, 2026
16d2a26
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 11, 2026
9ad61c3
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 12, 2026
71eea11
Use newest Onyx changes from Onyx store-based PR 1
fabioh8010 Jun 12, 2026
7eecb00
Refactor collection key Onyx.connect cases
fabioh8010 May 27, 2026
6008df2
Remove waitForCollectionCallback usages and fix resulting type errors
fabioh8010 Jun 12, 2026
4b9ab27
Fix lint error
fabioh8010 Jun 15, 2026
98048b4
Merge remote-tracking branch 'origin/main' into feature/onyx-store-pr-1
fabioh8010 Jun 15, 2026
1f28d58
Merge commit '7224b837ffd63958ddceebe1cbc50030fd3a7de1' into feature/…
fabioh8010 Jun 15, 2026
52ec1ed
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 18, 2026
047f1a6
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 22, 2026
4b917a5
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 22, 2026
3140e16
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 22, 2026
97c35ba
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 24, 2026
40c913f
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 24, 2026
d29d95a
Cleanup
fabioh8010 Jun 24, 2026
9f0dd6e
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 26, 2026
946d782
Use newest Onyx changes
fabioh8010 Jun 26, 2026
18e015e
Use newest Onyx changes
fabioh8010 Jun 26, 2026
48d2782
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 26, 2026
90739ae
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 29, 2026
19dffd8
Use newest Onyx changes
fabioh8010 Jun 29, 2026
d5cb2ed
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 29, 2026
1dacc5b
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 29, 2026
e9ac7da
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 29, 2026
02f4cab
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 29, 2026
e8e1b33
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 29, 2026
7a0ecc8
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jun 30, 2026
d0d23dd
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jun 30, 2026
38aab40
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jul 1, 2026
af50be7
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jul 2, 2026
a2b649e
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jul 3, 2026
4dc10b2
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jul 6, 2026
a84be57
Merge branch 'main' into feature/onyx-store-poc-baseline
fabioh8010 Jul 7, 2026
a641450
Merge branch 'feature/onyx-store-poc-baseline' into feature/onyx-stor…
fabioh8010 Jul 7, 2026
4932ce8
Merge remote-tracking branch 'origin/main' into feature/onyx-store-pr-1
fabioh8010 Jul 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"react-native-localize": "^3.5.4",
"react-native-nitro-modules": "0.35.0",
"react-native-nitro-sqlite": "9.6.0",
"react-native-onyx": "3.0.88",
"react-native-onyx": "3.0.89",
"react-native-pager-view": "8.0.0",
"react-native-pdf": "7.0.2",
"react-native-permissions": "^5.4.0",
Expand Down
1 change: 0 additions & 1 deletion src/libs/DistanceRequestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ let allPolicies: OnyxCollection<Policy>;

Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
callback: (value) => (allPolicies = value),
});

Expand Down
1 change: 0 additions & 1 deletion src/libs/Fullstory/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import type {GetChatFSClass, ShouldInitialize} from './types';
let allReports: OnyxCollection<Report>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
},
Expand Down
2 changes: 0 additions & 2 deletions src/libs/Middleware/Pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,12 @@ function registerPaginationConfig<TResourceKey extends OnyxCollectionKey, TPageK
} as unknown as PaginationConfigMapValue);
Onyx.connectWithoutView<OnyxCollectionKey>({
key: config.resourceCollectionKey,
waitForCollectionCallback: true,
callback: (data) => {
resources.set(config.resourceCollectionKey, data);
},
});
Onyx.connectWithoutView<OnyxPagesKey>({
key: config.pageCollectionKey,
waitForCollectionCallback: true,
callback: (data) => {
pages.set(config.pageCollectionKey, data);
},
Expand Down
2 changes: 0 additions & 2 deletions src/libs/Notification/LocalNotification/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ let allPolicies: OnyxCollection<Policy>;
// see https://github.com/Expensify/App/issues/66336
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
callback: (value) => {
allPolicies = value;
},
Expand All @@ -25,7 +24,6 @@ let allPolicyTags: OnyxCollection<PolicyTagLists>;
// see https://github.com/Expensify/App/issues/66336
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.POLICY_TAGS,
waitForCollectionCallback: true,
callback: (value) => {
allPolicyTags = value;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ Onyx.connectWithoutView({
let allReportActions: OnyxCollection<ReportActions>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (value) => (allReportActions = value),
});

let allReports: OnyxCollection<ReportType>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => (allReports = value),
});

Expand Down
2 changes: 0 additions & 2 deletions src/libs/OptionsListUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ import {doesPersonalDetailMatchSearchTerm, getCurrentUserSearchTerms, getPersona
let allReports: OnyxCollection<Report>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
},
Expand All @@ -249,7 +248,6 @@ const deprecatedCachedOneTransactionThreadReportIDs: Record<string, string | und
let deprecatedAllReportActions: OnyxCollection<ReportActions>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (actions) => {
if (!actions) {
return;
Expand Down
1 change: 0 additions & 1 deletion src/libs/Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const accountIDToNameMap: Record<string, string> = {};
let reportIDToNameMap: Record<string, string> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
// Clear the map so removed reports don’t linger
reportIDToNameMap = {};
Expand Down
3 changes: 0 additions & 3 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ function isHarvestCreatedExpenseReport(origin?: string, originalID?: string): bo
let allReportActions: OnyxCollection<ReportActions>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (actions) => {
if (!actions) {
return;
Expand All @@ -116,7 +115,6 @@ Onyx.connect({
let allReports: OnyxCollection<Report>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
},
Expand All @@ -143,7 +141,6 @@ Onyx.connect({
let allReportNameValuePair: OnyxCollection<ReportNameValuePairs>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
return;
Expand Down
1 change: 0 additions & 1 deletion src/libs/ReportTitleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ let allReportNameValuePairs: Record<string, ReportNameValuePairs> = {};
*/
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
waitForCollectionCallback: true,
callback: (val) => {
allReportNameValuePairs = (val as Record<string, ReportNameValuePairs>) ?? {};
},
Expand Down
8 changes: 0 additions & 8 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1059,15 +1059,13 @@ Onyx.connect({
let deprecatedAllReportsDraft: OnyxCollection<Report>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_DRAFT,
waitForCollectionCallback: true,
callback: (value) => (deprecatedAllReportsDraft = value),
});

let allPolicies: OnyxCollection<Policy>;
let policiesArray: Policy[] = [];
Onyx.connect({
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
callback: (value) => {
allPolicies = value;
policiesArray = Object.values(value ?? {}).filter((policy): policy is Policy => !!policy);
Expand All @@ -1077,15 +1075,13 @@ Onyx.connect({
let allPolicyDrafts: OnyxCollection<Policy>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.POLICY_DRAFTS,
waitForCollectionCallback: true,
callback: (value) => (allPolicyDrafts = value),
});

let deprecatedAllReports: OnyxCollection<Report>;
let deprecatedReportsByPolicyID: ReportByPolicyMap;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
deprecatedAllReports = value;

Expand Down Expand Up @@ -1117,7 +1113,6 @@ let deprecatedAllTransactions: OnyxCollection<Transaction> = {};
let deprecatedReportsTransactions: Record<string, Transaction[]> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.TRANSACTION,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
return;
Expand All @@ -1143,7 +1138,6 @@ Onyx.connect({
let allReportActions: OnyxCollection<ReportActions>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (actions) => {
if (!actions) {
return;
Expand All @@ -1156,7 +1150,6 @@ let allReportMetadata: OnyxCollection<ReportMetadata>;
const allReportMetadataKeyValue: Record<string, ReportMetadata> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_METADATA,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
return;
Expand Down Expand Up @@ -1186,7 +1179,6 @@ Onyx.connectWithoutView({
let allReportNameValuePair: OnyxCollection<ReportNameValuePairs>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
return;
Expand Down
4 changes: 0 additions & 4 deletions src/libs/UnreadIndicatorUpdater/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ let allReportNameValuePairs: OnyxCollection<ReportNameValuePairs> = {};
// This subscription is used to update the unread indicators count which is not linked to UI and it does not update any UI state.
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
waitForCollectionCallback: true,
callback: (value) => {
allReportNameValuePairs = value;
},
Expand All @@ -53,7 +52,6 @@ let allReportActions: OnyxCollection<ReportActions> = {};
// This subscription is used to update the unread indicators count which is not linked to UI and it does not update any UI state.
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (value) => {
allReportActions = value;
},
Expand All @@ -62,7 +60,6 @@ Onyx.connectWithoutView({
let allDraftComments: OnyxCollection<string> = {};
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_DRAFT_COMMENT,
waitForCollectionCallback: true,
callback: (value) => {
allDraftComments = value;
},
Expand Down Expand Up @@ -135,7 +132,6 @@ const triggerUnreadUpdate = debounce(() => {
// This subscription is used to update the unread indicators count which is not linked to UI and it does not update any UI state.
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
triggerUnreadUpdate();
Expand Down
2 changes: 0 additions & 2 deletions src/libs/actions/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,12 @@ let allReports: OnyxCollection<OnyxTypes.Report>;
let allPolicies: OnyxCollection<OnyxTypes.Policy>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
},
});
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
callback: (value) => {
allPolicies = value;
},
Expand Down
2 changes: 0 additions & 2 deletions src/libs/actions/ClearReportActionErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ type IgnoreDirection = 'parent' | 'child';
let allReportActions: OnyxCollection<OnyxTypes.ReportActions>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (value) => (allReportActions = value),
});

let allReports: OnyxCollection<OnyxTypes.Report>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
},
Expand Down
1 change: 0 additions & 1 deletion src/libs/actions/Export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function clearStaleExportDownloads() {
// to the entire collection, which would cause unnecessary re-renders on every change.
const connectionID = Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.EXPORT_DOWNLOAD,
waitForCollectionCallback: true,
callback: (exportDownloads) => {
Onyx.disconnect(connectionID);
if (!exportDownloads) {
Expand Down
7 changes: 0 additions & 7 deletions src/libs/actions/IOU/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Onyx.connect({
let allTransactions: NonNullable<OnyxCollection<OnyxTypes.Transaction>> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.TRANSACTION,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
allTransactions = {};
Expand All @@ -32,7 +31,6 @@ Onyx.connect({
let allTransactionDrafts: NonNullable<OnyxCollection<OnyxTypes.Transaction>> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.TRANSACTION_DRAFT,
waitForCollectionCallback: true,
callback: (value) => {
allTransactionDrafts = value ?? {};
},
Expand All @@ -42,7 +40,6 @@ Onyx.connect({
let allTransactionViolations: NonNullable<OnyxCollection<OnyxTypes.TransactionViolations>> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
allTransactionViolations = {};
Expand All @@ -56,7 +53,6 @@ Onyx.connect({
let allPolicyTags: OnyxCollection<OnyxTypes.PolicyTagLists> = {};
Onyx.connect({
key: ONYXKEYS.COLLECTION.POLICY_TAGS,
waitForCollectionCallback: true,
callback: (value) => {
if (!value) {
allPolicyTags = {};
Expand All @@ -69,7 +65,6 @@ Onyx.connect({
let allReports: OnyxCollection<OnyxTypes.Report>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
allReports = value;
},
Expand All @@ -78,7 +73,6 @@ Onyx.connect({
let allReportNameValuePairs: OnyxCollection<OnyxTypes.ReportNameValuePairs>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
waitForCollectionCallback: true,
callback: (value) => {
allReportNameValuePairs = value;
},
Expand All @@ -103,7 +97,6 @@ Onyx.connect({
let allReportActions: OnyxCollection<OnyxTypes.ReportActions>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (actions) => {
if (!actions) {
return;
Expand Down
1 change: 0 additions & 1 deletion src/libs/actions/OnyxDerived/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ function init() {
if (OnyxKeys.isCollectionKey(dependencyOnyxKey)) {
Onyx.connectWithoutView({
key: dependencyOnyxKey,
waitForCollectionCallback: true,
callback: (value, collectionKey, sourceValue) => {
Log.info(`[OnyxDerived] dependency ${collectionKey} for derived key ${key} changed, recomputing`);
setDependencyValue(dependencyIndex, value as Parameters<typeof compute>[0][typeof dependencyIndex]);
Expand Down
1 change: 0 additions & 1 deletion src/libs/actions/Policy/Member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function hasPolicyAdminsRoomsAccess(role: string | undefined): boolean {
let allReportActions: OnyxCollection<ReportActions>;
Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (actions) => (allReportActions = actions),
});

Expand Down
2 changes: 0 additions & 2 deletions src/libs/actions/Report/DeleteReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ import Onyx from 'react-native-onyx';
let allReports: OnyxCollection<Report>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => (allReports = value),
});

let allReportActions: OnyxCollection<ReportActions>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (value) => (allReportActions = value),
});

Expand Down
2 changes: 0 additions & 2 deletions src/libs/actions/Report/MarkAllMessageAsRead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ import Onyx from 'react-native-onyx';
let allReportActions: OnyxCollection<ReportActions>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
waitForCollectionCallback: true,
callback: (value) => (allReportActions = value),
});

let allReports: OnyxCollection<Report>;
Onyx.connectWithoutView({
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => (allReports = value),
});

Expand Down
Loading
Loading