appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]-[0]:lodash's debounce doesn't work as expected

Open rishabhrathod01 opened this issue 3 years ago • 8 comments

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

  1. Try to add {{_.debounce(() => showAlert('heelo'),500)}} in input widget
  2. Type in input widget
  3. See the issue.

Expected behaviour - Alert should be visible when the user stops typing and the 500ms wait is completed.

Environment

Production

Version

Cloud

rishabhrathod01 avatar Dec 30 '21 10:12 rishabhrathod01

Hi Guys, any update on when this can be rolled out?

dsakaria16 avatar Jan 24 '22 10:01 dsakaria16

Hi @dsakaria16 , this is currently being investigated and will be fixed as soon as possible.

ohansFavour avatar Jan 24 '22 10:01 ohansFavour

Internal discussion thread about this https://theappsmith.slack.com/archives/C02K0SZQ7V3/p1643175364068100?thread_ts=1643117151.066300&cid=C02K0SZQ7V3

ajinkyakulkarni avatar Jan 26 '22 10:01 ajinkyakulkarni

Stats

Stat Values
Reach 0
Effort (months) 0.25

rohan-arthur avatar Apr 22 '22 05:04 rohan-arthur

@rohan-arthur would like to know how did we calculate reach for this issue?

rishabhrathod01 avatar Jun 12 '22 10:06 rishabhrathod01

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!

Zajozor avatar Oct 24 '22 19:10 Zajozor

And updates on this?

Sonorpearl avatar Dec 01 '22 14:12 Sonorpearl

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.

codenameakshay avatar Feb 09 '24 10:02 codenameakshay