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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly reject promises on server #4464
Properly reject promises on server #4464
Conversation
@ollfkaih Yes you're correct, but I can't think of a better solution |
`Promise.resolve()` will not reject upon any of the input promises rejecting, which can cause promises to never stop on the client if the server sends unhandled promises. Simply replacing with a `Promise.all()` fixes this issue. Also clean up som effects so that only "valid" promises are made.
b8b9e8f
to
a6b017d
Compare
Allsettled should be the same but ensure all promises are settled? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤
@ollfkaih ah yes you're right - this actually just seems like a better options for us here. Replaced them now |
Description
Promise.resolve()
will not reject upon any of the input promises rejecting, which can cause promises to never stop on the client if the server sends unhandled promises. Simply replacing with aPromise.all()
fixes this issue.Result
No visual changes.
Testing
Spamming hard refreshes does not put page in limbo 馃憤馃徏
Screen.Recording.2024-02-14.at.18.30.49.mov