Hi there,
I am implementing autocomplete for a SQL-ish language, and as part of the autocomplete features, I want to add the ability to autocomplete filter values. So if I had code that looked like this:
SELECT x
FROM y
WHERE z = 'foo'
it would make a call to the database to get all the valid values for z
(if you were attempting to autocomplete z
). I’ve successfully implemented that logic, but the UX right now is poor; depending on the amount of data, the network call to get values of z
can take a second or two, but there is no affordance to the user that anything is happening while the call happens.
Ideally it would open the autocomplete as soon as the call is started with some sort of loading state (like a spinner), and when values come back, it would show the values to the user.
I’ve looked through the docs and I don’t believe this is something that is currently supported by the library. Is there any interest in supporting this case? My thinking is that, because this supports async completions, it seems reasonable to support a way of informing the user that it is waiting on async completions.