-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
When users rapidly zoom in and out or pan the map quickly, multiple requests to fetch stops are triggered in quick succession. This can lead to a race condition where older requests complete after newer ones, resulting in outdated or inconsistent stop data being displayed on the map. More importantly, it also causes inefficiencies, as unnecessary requests are processed for data that is no longer relevant or useful.
Steps to Reproduce
- Open the map interface.
- Quickly zoom in and out multiple times or pan rapidly.
- Observe the network requests in the developer tools (many overlapping requests are sent).
- Sometimes, older data appears instead of the latest fetched stops.
Expected Behavior
- Only the most recent stop data should be displayed after zooming/panning.
- Older requests should be properly canceled when a new request is initiated.
Additional Info
This issue is similar to the issue #220 .
Metadata
Metadata
Assignees
Labels
No labels