-
Notifications
You must be signed in to change notification settings - Fork 27
Added 'onChangeTextDelayed' callbacks to input components (debouncing) (47) #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
YoussefHenna
commented
Jun 5, 2023
- The title basically
- Will allow users to make API calls on text change after a delay when typing stops. Prevents overloading API with requests on every character.
P-3664 Debounced Value
Its essential thing for common search bar UX. I had to implemented this in 3 experts project till now. The way I envision is we can start with input field. Like we have a access to data source variable in the action panel. We should a debounced version of that variable. That can be accessable in the action. The way I implement is that I have a custom hook for debounced value: I want a api call to be triggered each time the debounced variable is changed. I couldn't thought of a better way other than this. We should have a property in property panel to control the property panel and a switch to decide if user wants a debounced value or not. Let me know If that could be done in a better way. I can improve my implementation. Thanks |