Skip to content
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

Reproduce promise deadlock. #628

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

stephenh
Copy link
Collaborator

@stephenh stephenh commented May 1, 2023

what ends up happening is you ask a1.nameWithMentor and a2.nameWithMentor to populate; this dataloaders together into 1 promise.

a1.nameWithMentor can technically resolve, but a2.nameWithMentor requires a1.nameWithMentor, which it asks for, but in the process creates a promise that blocks on the dataloadered promise that is waiting for both a1 & a2 to resolve.

so promise deadlock and it just hangs.

@stephenh stephenh changed the title Reproduce. Reproduce promise deadlock. Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant