xnimorz/use-debounce

How the leading option can be changed dynamically?

AjaxSolutions opened this issue · 1 comments

I'd like to use the leading: true option while testing a component and leading: false otherwise.

How can I do this?

Hi @AjaxSolutions

I'm not sure I get you right. Do you mean unit testing or E2E tests?

Talking about E2E, you could do it by providing a prop to the component which will set a correct param