fix: generate unique cache key for different keys#791
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari2026-05-25.16.49.36.mov |
|
LGTM! |
|
@nkdengineer CI is failing, could you merge with main? |
You need to fill |
|
Got it, I will create an E/App PR tomorrow. |
|
@ZhenjaHorbach E/App PR is here cc @fabioh8010 |
dangrous
left a comment
There was a problem hiding this comment.
Makes sense to me! Are we okay to merge this now or do we need to wait for anything?
Details
Update OnyxSnapshotCache to generate a unique cache key for different keys with the same selector.
Related Issues
Expensify/App#89800
Linked E/App PR
Expensify/App#91780
Automated Tests
Added the unit test to ensure the generated cache key is unique for different keys
Manual Tests
Author Checklist
### Related Issuessection aboveTestssectiontoggleReportand notonIconClick)myBool && <MyComponent />.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Avataris modified, I verified thatAvataris working as expected in all cases)mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screen.Recording.2026-05-25.at.14.01.10.mov