-
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 2024-10-11] Optimistic API READ updates are not applied immediately if write requests are queued #48053
Comments
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
The PR is still being worked on: I believe this is still relevant as otherwise the user can run into situation with long blank screens / waiting times, as we wait for optimistic updates to be applied while waiting for a network write request. |
PR has been merged to staging, waiting for any regressions… |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.44-12 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 2024-10-11. 🎊 |
Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Huh... This is 4 days overdue. Who can take care of this? |
Still overdue 6 days?! Let's take care of this! |
10 days overdue. Is anyone even seeing these? Hello? |
12 days overdue. Walking. Toward. The. Light... |
This issue has not been updated in over 14 days. eroding to Weekly issue. |
Huh, this has been merged a long time ago. Closing this one! |
Slack thread
In this PR:
API.read
wait on all requests on the SequentialQueue to respond #12219we introduced for read requests to happen only after any write request has completed. An example for that is this use case:
however, due to that change we stopped applying optimistic READ updates immediately. Instead, now, the optimistic updates are only applied once all write requests has finished.
This can cause bugs. One bug for example is here, where we open a new component which fires a READ request on mount. It sets a loading state, and that one is expected to immediately become visible in the UI:
But as the read requests optimistic update is delayed we just see a blank page:
The text was updated successfully, but these errors were encountered: