You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using dynamic properties with a "refreshers" property set to an input field, a call to the external API of a service is always immediately made when the contents of the input field change (think entering an e-mail address). This creates a lot of unnecessary calls to the API. This is a problem for rate-limiting APIs and server load.
A delay time, so-called debounce, could be set before the dynamic property makes a request to the external API. This could be another attribute of a dynamic property or an attribute of an input field taking the delay time. For example, setting a delay time of 3000ms would wait 3 seconds after someone stopped typing their email address into an input field before the code in the dynamic property is run. An implementation could be done using the lodash debounce library as it is already a dependency of activepieces.
I have tried implementing debounce on the piece level using lodash debounce and my own implementation, but I was unsuccessful because the state of the initialized debounce object is cleared with every keystroke in the input field. It seems this has to be implemented via the activepieces framework itself.
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If this issue is continuing with the latest stable version of Activepieces, please open a new issue that references this one.
When using dynamic properties with a "refreshers" property set to an input field, a call to the external API of a service is always immediately made when the contents of the input field change (think entering an e-mail address). This creates a lot of unnecessary calls to the API. This is a problem for rate-limiting APIs and server load.
A delay time, so-called debounce, could be set before the dynamic property makes a request to the external API. This could be another attribute of a dynamic property or an attribute of an input field taking the delay time. For example, setting a delay time of 3000ms would wait 3 seconds after someone stopped typing their email address into an input field before the code in the dynamic property is run. An implementation could be done using the lodash debounce library as it is already a dependency of activepieces.
I have tried implementing debounce on the piece level using lodash debounce and my own implementation, but I was unsuccessful because the state of the initialized debounce object is cleared with every keystroke in the input field. It seems this has to be implemented via the activepieces framework itself.
The text was updated successfully, but these errors were encountered: