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

[BUG] Race conditions in api calls #139

Open
sandstone991 opened this issue Mar 20, 2023 · 0 comments
Open

[BUG] Race conditions in api calls #139

sandstone991 opened this issue Mar 20, 2023 · 0 comments

Comments

@sandstone991
Copy link
Contributor

sandstone991 commented Mar 20, 2023

Description

What is the problem you are facing

Currently in the entire app race conditions resulting from consecutive api calls isn't handled, which can cause wrong information to be displayed to the user especially on mobile phones where connection can be slower, I mentioned this bug before in an eariler pull request #135 I thought it was unique to just this component but upon further testing this problem is in the height and route api as well

What is your suggested solution

We can look at how osm for example handles this, they cancel any pending request but the last one and thus showing the output of the most recent input
image

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

No branches or pull requests

1 participant