alleyinteractive / alleyinteractive/alley-scripts

Debounce search-as-you-type in post selector

未关闭
#152 0 条评论 0 个 reaction 已指派 1 人 已被 @renatonascalves 认领 在 GitHub 查看
Post Selector
主要语言
TypeScript
星标
10
派生
3
平均合并
4 天 22 小时
30 天内合并 PR
2

描述

In the post selector, searches happen immediately (after the 3rd character), which can cause many unnecessary requests. The search REST API endpoint can be quite slow if there's a lot of content on the site, so this could end up being a significant issue. It would be great to debounce this so the search doesn't happen until the user stops typing for 2-3 seconds.

See GIF below.

![debounce](https://user-images.githubusercontent.com/465154/234093118-d5a59c9d-8353-4fba-9a8b-f8d5d7b854ba.gif)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。