mrhead / stimulus-search

Search autocomplete with Stimulus JS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use AbortController to abort previous fetch request

mrhead opened this issue · comments

Currently if fetch requests finish in different order than in which they were created, then we can end up with incorrect data. This can be fixed by aborting previous requests with AbortController.