Skip to content

Commit 2584619

Browse files
committed
chore: Bump Onyx to 3.0.68
1 parent ab41b82 commit 2584619

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
@@ -178,7 +178,7 @@
178178
"react-native-localize": "^3.5.4",
179179
"react-native-nitro-modules": "0.35.0",
180180
"react-native-nitro-sqlite": "9.6.0",
181-
"react-native-onyx": "3.0.63",
181+
"react-native-onyx": "3.0.68",
182182
"react-native-pager-view": "8.0.0",
183183
"react-native-pdf": "7.0.2",
184184
"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.63.patch](react-native-onyx+3.0.63.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.63.patch renamed to patches/react-native-onyx/react-native-onyx+3.0.68.patch

File renamed without changes.

0 commit comments

Comments
 (0)