From 70cd99071b27dc9984ed39e7be160b20f9a4f499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Muzyk?= Date: Tue, 14 Apr 2026 08:31:17 +0200 Subject: [PATCH] feat: 86765 Onyx bump to 3.0.60 --- package-lock.json | 8 ++++---- package.json | 2 +- patches/react-native-onyx/details.md | 2 +- ...e-onyx+3.0.59.patch => react-native-onyx+3.0.60.patch} | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename patches/react-native-onyx/{react-native-onyx+3.0.59.patch => react-native-onyx+3.0.60.patch} (100%) diff --git a/package-lock.json b/package-lock.json index 52ca190e8490..fdd7d3713fbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -114,7 +114,7 @@ "react-native-localize": "^3.5.4", "react-native-nitro-modules": "0.29.4", "react-native-nitro-sqlite": "9.2.0", - "react-native-onyx": "3.0.59", + "react-native-onyx": "3.0.60", "react-native-pager-view": "8.0.0", "react-native-pdf": "7.0.2", "react-native-permissions": "^5.4.0", @@ -34788,9 +34788,9 @@ } }, "node_modules/react-native-onyx": { - "version": "3.0.59", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-3.0.59.tgz", - "integrity": "sha512-HNm1kCSpY2bFC2gEdsr8gssJsZEaH9f/rNkI9AP2h464z74VMlkR/01a1UkCXPWwAmPnKeS2MAHdmOyfzjuSaQ==", + "version": "3.0.60", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-3.0.60.tgz", + "integrity": "sha512-rW5pTGYcnpQv3vNv9IvBpvIFg3McY3f4jDe96eQbkxeRyzm592J8dfZAKjhavkoJkRo0gLP+oInxRvVOQihfYw==", "license": "MIT", "dependencies": { "ascii-table": "0.0.9", diff --git a/package.json b/package.json index 949a232bb7a1..5489634524af 100644 --- a/package.json +++ b/package.json @@ -177,7 +177,7 @@ "react-native-localize": "^3.5.4", "react-native-nitro-modules": "0.29.4", "react-native-nitro-sqlite": "9.2.0", - "react-native-onyx": "3.0.59", + "react-native-onyx": "3.0.60", "react-native-pager-view": "8.0.0", "react-native-pdf": "7.0.2", "react-native-permissions": "^5.4.0", diff --git a/patches/react-native-onyx/details.md b/patches/react-native-onyx/details.md index 1e0e4b90c91a..29ad7ca30d77 100644 --- a/patches/react-native-onyx/details.md +++ b/patches/react-native-onyx/details.md @@ -1,6 +1,6 @@ # `react-native-onyx` patches -### [react-native-onyx+3.0.59.patch](react-native-onyx+3.0.59.patch) +### [react-native-onyx+3.0.60.patch](react-native-onyx+3.0.60.patch) - Reason: Onyx v3.0.59 ([PR #756](https://github.com/Expensify/react-native-onyx/pull/756)) added a state reset inside the `subscribe` callback of `useOnyx` to fix stale data when keys change dynamically. However, this reset runs unconditionally — including on initial mount — which causes `useSyncExternalStore` to see a new snapshot reference after subscription, triggering one extra render per `useOnyx` hook. This patch guards the reset with a `hasMountedRef` flag so it only runs on key-change re-subscriptions, not on initial mount. - E/App issue: https://github.com/Expensify/App/issues/85416 diff --git a/patches/react-native-onyx/react-native-onyx+3.0.59.patch b/patches/react-native-onyx/react-native-onyx+3.0.60.patch similarity index 100% rename from patches/react-native-onyx/react-native-onyx+3.0.59.patch rename to patches/react-native-onyx/react-native-onyx+3.0.60.patch