Skip to content

Commit d8925f5

Browse files
committed
Merge pull request #352 from ratson/remove-duplicated-console-check
Remove duplicated console check
2 parents ea53d6f + 32d6e06 commit d8925f5

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/components/Provider.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ function warnAboutReceivingStore() {
99
}
1010
didWarnAboutReceivingStore = true
1111

12-
/* eslint-disable no-console */
13-
if (typeof console !== 'undefined' && typeof console.error === 'function') {
14-
warning(
15-
'<Provider> does not support changing `store` on the fly. ' +
16-
'It is most likely that you see this error because you updated to ' +
17-
'Redux 2.x and React Redux 2.x which no longer hot reload reducers ' +
18-
'automatically. See https://github.com/reactjs/react-redux/releases/' +
19-
'tag/v2.0.0 for the migration instructions.'
20-
)
21-
}
22-
/* eslint-disable no-console */
12+
warning(
13+
'<Provider> does not support changing `store` on the fly. ' +
14+
'It is most likely that you see this error because you updated to ' +
15+
'Redux 2.x and React Redux 2.x which no longer hot reload reducers ' +
16+
'automatically. See https://github.com/reactjs/react-redux/releases/' +
17+
'tag/v2.0.0 for the migration instructions.'
18+
)
2319
}
2420

2521
export default class Provider extends Component {

0 commit comments

Comments
 (0)