How to do this React Query thing without useEffect
Hi, here's some working code that I would love to remove the useEffect from. However if I just give the input text to the query directly, search results disappear when the user changes the search text because it creates a new query. Any ideas on an elegant way to solve this?
2 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Could you change from using a controlled input to an uncontrolled one, get the value of the input from the FormEvent and then set text to the input value?