Skip to main content

Pedro Rodriguez

Webdev enthusiast - Procrastinator - Currently working on ContainerQ

Article

Dealing With Stale Props and States in React’s Functional Components

There’s one aspect of JavaScript that always has me pulling my hair: closures. I work with React a lot, and the overlap there is that they can sometimes be the cause of stale props and state. We’ll get into exactly what that means, but the trouble is that the data we use to build our UI can be totally wrong in unexpected ways, which is, you know, bad.… Read article “Dealing With Stale Props and States in React’s Functional Components”