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

Fix / Resolving of Batched Routes #1112

Merged
merged 5 commits into from
Nov 25, 2024
Merged

Conversation

sonytooo
Copy link
Collaborator

@sonytooo sonytooo commented Nov 22, 2024

Screenshot 2024-11-22 at 16 02 56 Screenshot 2024-11-25 at 10 56 04

@sonytooo sonytooo added the bug Something isn't working label Nov 22, 2024
@sonytooo sonytooo self-assigned this Nov 22, 2024
})
)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the problem with Promise.all-ing these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue occurs because updateActiveRoute writes to this.activeRoutes. When multiple routes are updated in parallel, it causes a race condition, resulting in some routes failing to update properly

Copy link
Member

@PetromirDev PetromirDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

➕ Same as Kalo's feedback

@sonytooo sonytooo merged commit 070f6f5 into v2 Nov 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants