DEV Community

Discussion on: React's new Context API and Actions

Collapse
 
dan_abramov profile image
Dan Abramov

Note your example will re-render consumers more often than necessary.

reactjs.org/docs/context.html#caveats

Collapse
 
washingtonsteven profile image
Steven Washington

Thanks for pointing that out! I made some updates to that example that should address this.

always important to RTFM; I messed up in this case. 😳

Always learning!