We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58dcf33 commit 2d06cdfCopy full SHA for 2d06cdf
src/components/connectAdvanced.js
@@ -110,7 +110,6 @@ export default function connectAdvanced(
110
111
if(pure) {
112
OuterBaseComponent = PureComponent
113
- //FinalWrappedComponent = React.memo(WrappedComponent)
114
}
115
116
class PureWrapper extends Component {
@@ -207,10 +206,12 @@ export default function connectAdvanced(
207
206
208
209
render() {
+ const ContextToUse = this.props.context || Context
210
+
211
return (
- <Context.Consumer>
212
+ <ContextToUse.Consumer>
213
{this.renderWrappedComponent}
- </Context.Consumer>
214
+ </ContextToUse.Consumer>
215
)
216
217
0 commit comments