Open in app
Gerardo Fernández
1.1K Followers
About

Sign in

1.1K Followers
About
Open in app
Using React hooks to asynchronously make API requests
532
7

Audisho Sada

Gerardo Fernández

Gerardo Fernández

May 24, 2019·1 min read

I think you will get and infinite loop if you try to use makeRequest inside useEffect, because the returning function from your custom change will trigger another render and so on…

Written by

Gerardo Fernández

Entre paseo y paseo con Simba desarrollo en Symfony y React

More from Gerardo Fernández

Entre paseo y paseo con Simba desarrollo en Symfony y React

More From Medium

React. 7 tricks to work with Styled Components

Gerardo Fernández in JavaScript In Plain English

React router. Route configuration

Gerardo Fernández in The Startup

Javascript. The “this” variable

Gerardo Fernández

React. 5 tricks to improve the performance of your applications

Gerardo Fernández in Noteworthy - The Journal Blog

React Components vs. React Hooks

Gerardo Fernández in Better Programming

React 17.0 — The news is that there is no news

Gerardo Fernández

Javascript. 6 tips to improve the performance of the code you write

Gerardo Fernández

React toast. An implementation with the Context API and hooks

Gerardo Fernández

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store