Skip to content

Commit da58625

Browse files
committed
chore: update details.md for react-native-onyx
1 parent b703a92 commit da58625

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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.63.patch](react-native-onyx+3.0.63.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

0 commit comments

Comments
 (0)