Hello everyone, i was working with Instant search ...
# community-help
a
Hello everyone, i was working with Instant search library in react, but recently i found that <Configure/> component is sending repeated queries to type sense on state change(my case inputting distance in input box), as its getting re-rendered. i tried different techniques to stop it, but none is working. can anyone help me how to tackle this situation?
f
Every keypress is registered as a different query (you can check this behavior out on every demo of ours, or even on Typesense Cloud on the Search page for each collection). To avoid this, have an onSubmit handler instead and use a form to wrap it.
a
Thanks mate i solved it, using that component as child and render only on search click.
❤️ 1