#free text search using api

1 messages · Page 1 of 1 (latest)

supple karma
#

I have an search api and textfield which invoke fetch request on each keystroke. ideas on simple solution how to trigger only when there is a small pause of typing or just skip the ones not relevant?

carmine lake
#

sending a code sample in a minute, ive done this b4

#

hope it helps! feel ya there, dont wanna make too many requests lmao

supple karma
#

thank you.. checking soon

carmine lake
supple karma
#

can you explain how debounce function works? i couldn't find official documentation of this function but it seems it's just postpone invocation by fix time interval

carmine lake
#

it seems like the run function it what actually gets called

#

and where we're calling fn.apply with self

#

self is this, i think we're changing it because of the apply function