DEV Community

Discussion on: React context, performance?

Collapse
 
mbeaudru profile image
Manuel Beaudru

I took more time to read the use-context-selector API, no you are not missing anything - I was 🤭. I thought the second parameter was to define a "key" that would be used to decide when to re-render, but it is instead really a value selector.

Looking forward your next articles then ! :)