Skip to content

Commit 2d0c8d6

Browse files
authored
Merge pull request #87836 from callstack-internal/feat/86765-onyx-bump
feat: 86765 Onyx bump to 3.0.60
2 parents 818ad5e + 70cd990 commit 2d0c8d6

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"react-native-localize": "^3.5.4",
178178
"react-native-nitro-modules": "0.29.4",
179179
"react-native-nitro-sqlite": "9.2.0",
180-
"react-native-onyx": "3.0.59",
180+
"react-native-onyx": "3.0.60",
181181
"react-native-pager-view": "8.0.0",
182182
"react-native-pdf": "7.0.2",
183183
"react-native-permissions": "^5.4.0",

patches/react-native-onyx/details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `react-native-onyx` patches
22

3-
### [react-native-onyx+3.0.59.patch](react-native-onyx+3.0.59.patch)
3+
### [react-native-onyx+3.0.60.patch](react-native-onyx+3.0.60.patch)
44

55
- 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.
66
- E/App issue: https://github.com/Expensify/App/issues/85416

patches/react-native-onyx/react-native-onyx+3.0.59.patch renamed to patches/react-native-onyx/react-native-onyx+3.0.60.patch

File renamed without changes.

0 commit comments

Comments
 (0)