appsmith
appsmith copied to clipboard
[Bug]-[0]:lodash's debounce doesn't work as expected
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
No Alert is visible when tried {{_.debounce(() => showAlert('heelo'),500)}}
Steps To Reproduce
- Try to add
{{_.debounce(() => showAlert('heelo'),500)}}in input widget - Type in input widget
- See the issue.
Expected behaviour - Alert should be visible when the user stops typing and the 500ms wait is completed.
Environment
Production
Version
Cloud
Hi Guys, any update on when this can be rolled out?
Hi @dsakaria16 , this is currently being investigated and will be fixed as soon as possible.
Internal discussion thread about this https://theappsmith.slack.com/archives/C02K0SZQ7V3/p1643175364068100?thread_ts=1643117151.066300&cid=C02K0SZQ7V3
Stats
| Stat | Values |
|---|---|
| Reach | 0 |
| Effort (months) | 0.25 |
@rohan-arthur would like to know how did we calculate reach for this issue?
not supporting debounce is pretty sad. Any plans to look into this :) ? I was not able to find any workarounds for this in other issues or discord.
Trying some stuff with setIntervals/async functions/storing values in appsmith state always seems to fail on something.
Thanks!
And updates on this?
Hey,
So I tried using this in the onBlur method of a text input widget, and I get a weird error.
https://github.com/appsmithorg/appsmith/assets/60510869/615cfe3a-6632-447e-b94a-afda8f563e9c
Code -
_.debounce(()=>storeValue('currentTest',{...appsmith.store.currentTest,title:inp_name.text}),500)
Basically, I am setting the store value to the field value when user clicks out of the text field. But I am not able to use debounce here.