-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-04-25] [CRITICAL] Add canBeMissing configuration option to useOnyx #58499
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
Comments
Hey, I'm Fábio - expert agency contributor - and I would like to work on this issue! |
As discussed in Slack I will start looking mid next week |
Thinking about this, I am not sure it will work since IIRC the ESLint rules in App run for all files and not only modified files? |
Should this be on
|
This is holding other issues marked as critical, so I assume should be critical too. |
@iwiznia We can use .eslintrc.changed.js to achieve this. It will only execute for the changed files of a PR.
I think we shouldn't throw errors on dev, I believe it could lead to widespread crashes if for example we have an |
Updates:
|
Ah perfect!
Yeah, makes sense, what can we do instead? Maybe show a modal similar to the one we show when the backend does many writes? I want it to be something that's quite in your face. |
@iwiznia Could you show me where is this modal or how can I trigger this? Curious about this |
Updates:
|
Oh, I was referring about this, but it seems it just uses an |
Updates:
|
Great progress here, thanks so much @fabioh8010! Both PRs are merged, all it's missing is adding it to App, right? |
Yes! Created Draft PR here -> #59191 |
Basically I'm worried if we are going to have "false-positives" when signing out the user, as Onyx data is going to be cleared (and possibly returning undefined to some hooks) when doing so. |
@iwiznia, @fabioh8010 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PR for adding growl alerts instead of system alerts: #61056 |
@iwiznia, @fabioh8010 Huh... This is 4 days overdue. Who can take care of this? |
Current assignee @mallenexpensify is eligible for the Bug assigner, not assigning anyone new. |
@parasharrajat you'll be due $250 for the review of #61056 , correct? Anyone else due 💰 here? |
@mallenexpensify This issue was critical, so the pay would be 500 for this issue. |
@parasharrajat , this was updated to CRITICAL on March 18th, I think that was before I started updating CRITICAL issues to $500. (also.. it's not a set-in-stone rule that all CRITICAL will be $500, I do think that most/many should be, if they're External, to help get 👀 though). I want to avoid having to retroactively review many issues to potentially increase the amount. Do you feel the amount of work, complexity or scope increased on the issue or PR? That could be reason for a potential price increase/ |
I am fine with 250 as well for this issue instead of 500. |
Contributor+: @parasharrajat due $250 via NewDot Unsure if can close so I'll leave open til it goes overdue again |
Closing |
@mallenexpensify do you have any update on this? I am really stuck on an issue for about 15 days and it is really difficult for externals to work without being on slack. Thank you. |
@ChavdaSachin , the co-worker I'm working with on the automation returns to work on Monday, so hopefully it won't be too much longer
Feel free to tag me in the issue to see if I can help. |
Context https://expensify.slack.com/archives/C03TQ48KC/p1741208342513379
Problem:
The backend doesn't know all the data the frontend needs, the frontend doesn't know if the we actually loaded from the backend all the data it is expecting/using. This leads to hard to debug/reproduce bugs when frontend tries to access a piece of data it thinks should exist but wasn't really loaded.
Solution:
Add a way so that we can indicate in the useOnyx calls if the data is ok to be missing or if we were expecting it to be there for sure:
The text was updated successfully, but these errors were encountered: