Propo41/bookify

[BUG] Quickly changing dropdown options causes the final room selection to be inaccurate

Closed this issue · 0 comments

Describe the bug
Quickly changing dropdown options causes the final room selection to be inaccurate

The issue appears since multiple requests are sent at once to the server. The responses arrive at different times causing a race condition. Need to add functionality so that only the recent request is captured.

Usage of abort controller is required: https://developer.mozilla.org/en-US/docs/Web/API/AbortController