agkayster / nextadmin-nextjs14-Fullstack-app

0 stars 0 forks source link

Implementation of useDebouncedCallback #28

Closed agkayster closed 8 months ago

agkayster commented 8 months ago

Implemented the condition if e.target.value.length is greater than 2 then the search/filter function for a username can kick off. Also implemented useDebouncedCallback which allows for the search functionality to wait for some time for the user to finish typing before the search/filter functionality can kick in. All this was implemented in the Search component.