Specifically, when you have a nesting like this: Provider -> SomeComponent -> ComponentWithUseContext where SomeComponent has shouldComponentUpdate = () => false; then ComponentWithUseContext doesn't properly rerender when Provider gets a new value (whereas using <Consumer> does rerender in that case).
Specifically, when you have a nesting like this:
Provider -> SomeComponent -> ComponentWithUseContext
whereSomeComponent
hasshouldComponentUpdate = () => false;
thenComponentWithUseContext
doesn't properly rerender whenProvider
gets a new value (whereas using<Consumer>
does rerender in that case).