Add search query delay

I am following this tutorial - Retool Mobile quickstart

In section 5, the tutorial teaches us how to add a search box. On typing a single character in the search box, the query gets triggered. And it keeps getting retriggered on every single key press.

Shouldn't the query wait for about 0.5-1 seconds after last key is released to trigger the search query?

Hey @tj11!

If you're looking to add some debounce to your query you can try running it as an event handler from the text input itself:

In that case, you'd also want to set the query to run only when manually triggered instead of automatically when inputs change:

And if you want it to run on page load you'll need to manually specify that as well:

Can you let me know if that works?