nextcloud / groupfolders

๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders
https://apps.nextcloud.com/apps/groupfolders
278 stars 85 forks source link

User/group autocomplete search debounce #1528

Open ClCfe opened 5 years ago

ClCfe commented 5 years ago

Hello,

I am currently using nextcloud 16.0.4 and the new Access Control List feature When searching a group or a user, autocompletes generate a lot of ajax request

image

we have the same problem in group folder admin panel

image

I think you could use a debounce delay to avoid sending ajax for each keystroke

LoveWaguan commented 2 years ago

fix it ? i using nextcloud 21.0.4 ,the same issue.

LoveWaguan commented 2 years ago

i trying to resolve it ,you maybe need this article: https://codesandbox.io/s/react-select-async-debounce-usecallback-oeixm?file=/src/App.js:54-93

LoveWaguan commented 2 years ago

maybe use debounce-promise can resolve this issue,i tried debounce/ladsh, it work not correctly,had many tries, debounce-promise is working.