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

switching to a new city during load of another can cause race condition problems #495

Open
robstoll opened this issue Dec 17, 2021 · 0 comments
Labels
Bug https://github.com/dotnet/roslyn/wiki/Labels-used-for-issues#bugs

Comments

@robstoll
Copy link
Contributor

Describe the bug
If one triggers two loadCityData then the last wins which can cause the situation, that the wrong fountains are emitted as event

To Reproduce
Steps to reproduce the behavior:

1.goto https://beta.water-fountains.org/ch-zh
2. Switch to Geneva before the fountains are loaded
3. Depending on which http call finishes first, the wrong data is displayed (e.g. zurich instead of geneva) or no fountains are displayed (geneva is shown but the fountain dots of zurich are rendered on the map)

Expected behavior
pipe the calls so that the first is canceled in case we change the fountain before

Screenshots
image

Additional context
Add any other context about the problem here.

@robstoll robstoll added the Bug https://github.com/dotnet/roslyn/wiki/Labels-used-for-issues#bugs label Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug https://github.com/dotnet/roslyn/wiki/Labels-used-for-issues#bugs
Projects
Status: No status
Development

No branches or pull requests

1 participant