DEV Community


Discussion on: Writing Your Own useFetch Hook in React

jeremydmarx813 profile image
Jeremy Marx

would it be a good idea to have a setTimeout for fetching the data from the Api, so the client is trying to fetch data from the API before the user has finished typing their name? If so, would you put that in the app component or the custom hook?