Thomas Juster
May 10, 2021

Yes, the Memo HOC only memoize the props received by the wrapped component.

Here, what causes the render are the setState calls from useState hooks, which are declared inside the provider and not passed as props.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Thomas Juster
Thomas Juster

Written by Thomas Juster

Front-end Developer; I‘m not sure who I am.

No responses yet

Write a response