Not able to search

for the below code search is not working as needed
4 Replies
kapa.ai
kapa.ai11mo ago
Hi @jash.s. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but I can't provide a solution without seeing the code you're referring to. Could you please provide the code that's causing the issue? However, I can give you some general advice on how to troubleshoot search issues in refine. 1. Check your getList function in your Data Provider. Refine does the search using the useList hook and passes it to the search parameter. If there's an issue, it might be related to this function. source (https://refine.dev/docs/api-reference/mui/hooks/useAutocomplete/) 2. If you want to change the behavior to make client-side filtering, you can examine this documentation (https://mui.com/material-ui/react-autocomplete/#search-as-you-type). 3. Make sure you're managing the value and options properties of the <AutoComplete> component dynamically. The useList hook should be triggered whenever the value changes. The filter used to fetch the data should also be updated each time the value changes. source (https://refine.dev/docs/advanced-tutorials/search/) If you're still having trouble, please provide the code and I'll be happy to help you troubleshoot further. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai11mo ago
<@1129363768661516329> kapa.ai is still learning and improving, please let us know how it did by reacting below
metropolitan-bronze
metropolitan-bronze11mo ago
<Form {...searchFormProps} onValuesChange={() => { searchFormProps.form?.submit(); }} initialValues={{ name: getDefaultFilter("name", filters, "contains"), }} > had missued onValuesChange , now working
optimistic-gold
optimistic-gold11mo ago
🚀 Happy to hear its resolved 🙏