You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FixExpensify#83751: use join key to prevent overwriting IDs on referential re-renders
The split effects allowed the set-effect to fire on referential-only
changes of visualOrderTransactionIDs. When navigating from Review
Duplicates to SEARCH_REPORT, this overwrote the IDs set by
onPreviewPressed, causing wrong prev/next arrow state on first open.
Replace with a combined effect using a join(',') primitive key as the
dependency. The effect only re-fires when the array content actually
changes, matching the original useDeepCompareRef behavior without the
deep-equal overhead or React Compiler incompatibility.
Made-with: Cursor
// eslint-disable-next-line react-hooks/exhaustive-deps -- visualOrderTransactionIDsKey is a primitive proxy for the array to avoid re-firing on referential-only changes
0 commit comments