Hi Friends,
What is the best way to use the "SearchComponent" with async data? (Basically, I'm trying to call an endpoint as users type the search key and populate the data.)
Cheers,
P
Thanks for the response Lauris! Got a bit confused initially when I looked at the code. All good now!
Hi,
Glad to hear that. All the best with your project!
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi,
You can check the demo of component usage in src/_metronic/partials/layout/search/Search.tsx, inside process function change setTimout to your request code, and when data is received you can render your block with found items.
Regards,
Lauris Stepanovs,
Keenthemes Support Team