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
{{ message }}
Repository navigation
[HOLD for payment 2024-12-25] [Performance] useOnyx doesn't return new data if the selector changes but the data in the store is the same #52597
App performance can degrade with the inefficient rendering
List any benchmarks that show the severity of the issue
N/A
Proposed solution (if any)
Mimic dependency array from some React hooks, like useEffect, to force useOnyx to fetch data if any dependency changes.
Something like useOnyx(key, options, [dependencyA]).
List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)
N/A
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Version Number: v9.0.62-4 Reproducible in staging?: yes Reproducible in production?: yes Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:#49919 (review) Expensify/Expensify Issue URL: Issue reported by: Slack conversation:
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.
If you all agree, I can also create an eslint rule to enforce the usage of the dependency array when developers pass variables in useOnyx selector. To achieve it, I'll need to adapt this and create an additional PR to add this new rule to https://github.com/Expensify/eslint-config-expensify
Today @fabioh8010 and I discussed this issue internally. There are some ideas on the table on how to tackle this issue, so we'll continue discussing them tomorrow!
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️
Activity
melvin-bot commentedon Nov 14, 2024
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.
pac-guerreiro commentedon Nov 14, 2024
@mountiny can you make this issue internal? @fabioh8010 and I are working on it
fabioh8010 commentedon Nov 14, 2024
You tagged the wrong person @pac-guerreiro , it's @mountiny 😄
pac-guerreiro commentedon Nov 14, 2024
Ups, sorry! 😅
mountiny commentedon Nov 14, 2024
Sounds good
pac-guerreiro commentedon Nov 17, 2024
Last friday I didn't work on this but tomorrow I'll open a draft PR with a possible solution
pac-guerreiro commentedon Nov 18, 2024
I opened a draft PR with a possible solution for this issue - Expensify/react-native-onyx#599
If you all agree, I can also create an eslint rule to enforce the usage of the dependency array when developers pass variables in
useOnyxselector. To achieve it, I'll need to adapt this and create an additional PR to add this new rule to https://github.com/Expensify/eslint-config-expensifypac-guerreiro commentedon Nov 19, 2024
I'm waiting on @fabioh8010 feedback on this since he has an alternate solution
fabioh8010 commentedon Nov 20, 2024
We are currently discussing the issue internally.
pac-guerreiro commentedon Nov 20, 2024
Today @fabioh8010 and I discussed this issue internally. There are some ideas on the table on how to tackle this issue, so we'll continue discussing them tomorrow!
34 remaining items
melvin-bot commentedon Dec 25, 2024
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.
melvin-bot commentedon Dec 28, 2024
Triggered auto assignment to @sonialiap (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.melvin-bot commentedon Dec 28, 2024
melvin-bot commentedon Dec 28, 2024
Auto-assign attempt failed, all eligible assignees are OOO.
mountiny commentedon Dec 28, 2024
$250 to @sobitneupane No need for regression testing on this one
sonialiap commentedon Dec 30, 2024
Payment summary:
garrettmknight commentedon Mar 24, 2025
$250 approved for @sobitneupane