tweag / nixpkgs-graph-explorer

Explore the nixpkgs dependency graph
MIT License
15 stars 0 forks source link

Debouncing for the search box #48

Closed GuillaumeDesforges closed 1 year ago

GuillaumeDesforges commented 1 year ago

From @dorranh on Slack: message

It looks like we aren't using any kind of debouncing for the search box, so we fire off an API request on each character added which can make the behavior a bit jarring (e.g. if I type "python" then the results for "pyt" might return and render when I've finished typing the whole word since there is some latency in the API request). Is this something already supported by the component we are using for the text box, and if so, could we enable it?