Skip to content

Commit 0927108

Browse files
authored
Merge pull request #89158 from callstack-internal/chore/bump-onyx-to-3.0.68
chore: Bump Onyx to 3.0.68
2 parents b0a9339 + 9a54052 commit 0927108

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
@@ -179,7 +179,7 @@
179179
"react-native-localize": "^3.5.4",
180180
"react-native-nitro-modules": "0.35.0",
181181
"react-native-nitro-sqlite": "9.6.0",
182-
"react-native-onyx": "3.0.66",
182+
"react-native-onyx": "3.0.68",
183183
"react-native-pager-view": "8.0.0",
184184
"react-native-pdf": "7.0.2",
185185
"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.66.patch](react-native-onyx+3.0.66.patch)
3+
### [react-native-onyx+3.0.68.patch](react-native-onyx+3.0.68.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.66.patch renamed to patches/react-native-onyx/react-native-onyx+3.0.68.patch

File renamed without changes.

0 commit comments

Comments
 (0)