Great work and great write up. :)
Matt Seeley
11

Hey Matt Seeley! Fancy running into you here!

We haven’t set up the HoC to prevent renders itself, but the rendered component can (and often does) use the focused or entered props to return false from shouldComponentUpdate to do so. The HoC just acts as a passthrough for other props, so it doesn’t assess if other props have changed in order to make that decision on its own.

Like what you read? Give Andrew Eichacker a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.