-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-08-08] [Performance] Show cached onyx content right away #22644
Comments
Triggered auto assignment to @iwiznia ( |
@hannojg I assume you want this assigned to you since you'll be working on it, right? |
Yes, correct, thank you! |
The PR is ready for review: |
@hannojg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
This is on hold as the work and discussions are happening here: |
@hannojg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hey @MelvinBot everyone is working eagerly on getting this merged! We merged the PR in onyx and released version 1.0.56: However, in Onyx version 1.0.55 a bug has been introduced which causes a crash on mobile native. Once that's done, we can get this merged: |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.48-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-08-08. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue: As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
We need to pay $1000 to @mollfpr for their review and testing |
Paid |
The original PR for this issue was reverted and the new PR can be found here: Can we reopen this issue please @slafortune ?e |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
What performance issue do we need to solve?
We are trying to make Onyx more performant by default. Right now, onyx always starts in a loading state, then collects all the
requested keys and sets them to the component state. This is often times inefficient as all the data is already available in a cache which we can read synchronously.
For exact technical details see: Expensify/react-native-onyx#269
What is the impact of this on end-users?
List any benchmarks that show the severity of the issue
See: Expensify/react-native-onyx#269
Proposed solution (if any)
See: Expensify/react-native-onyx#269
Once we have the onyx changes in place we need to update onyx in the app and adjust a few screens to work correctly. Some screens are build with the assumption that we will always start in a loading state.
We will start by adjusting the
ReportScreen
. The following adjustments need to be made (as discussed here):firstRenderRef
introduced, which delays the real rendering of the report screen after it has been mounted. We want to get rid of it to show the available content right away.List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)
See: Expensify/react-native-onyx#269
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: x
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: Any additional supporting documentation
Expensify/Expensify Issue URL:
**Issue reported by: @hannojg **
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1688580518417739
The text was updated successfully, but these errors were encountered: