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 f4262b8 commit 6f72646Copy full SHA for 6f72646
src/components/connectAdvanced.js
@@ -1,11 +1,7 @@
1
import hoistStatics from 'hoist-non-react-statics'
2
import invariant from 'invariant'
3
import React, { Component, PureComponent } from 'react'
4
-import {
5
- isValidElementType,
6
- isContextConsumer,
7
- isContextProvider
8
-} from 'react-is'
+import { isValidElementType, isContextConsumer } from 'react-is'
9
10
import { ReactReduxContext } from './Context'
11
@@ -219,7 +215,6 @@ export default function connectAdvanced(
219
215
render() {
220
216
const ContextToUse =
221
217
this.props.context &&
222
- isContextProvider(this.props.context.Provider) &&
223
218
isContextConsumer(this.props.context.Consumer)
224
? this.props.context
225
: Context
0 commit comments