geovistory / design-system

MIT License
2 stars 1 forks source link

Explorer > Fix race conditions #47

Closed joschne closed 1 year ago

joschne commented 1 year ago

Current situation When typing a search term in the explorer, multiple sparql requests are sent to the sparql endpoint.

Currently, a request is not cancelled by a subsequent request, leading to this situation, for example:

Request A "Ha" Request B "Hans" Response B 10 records for "Hans" Response A 200 records for "Ha"

The user ends up with a search term "Hans" and the responses for "Ha".

Solution

Cancel active requests when a new request is sent.