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 7e3f605 commit 7d7370eCopy full SHA for 7d7370e
src/createDevTools.js
@@ -13,14 +13,22 @@ export default function createDevTools(children) {
13
14
return class DevTools extends Component {
15
static contextTypes = {
16
- store: PropTypes.object.isRequired
+ store: PropTypes.object
17
+ };
18
+
19
+ static propTypes = {
20
21
};
22
23
static instrument = () => enhancer;
24
25
constructor(props, context) {
26
super(props, context);
- this.liftedStore = context.store.liftedStore;
27
+ if (context.store) {
28
+ this.liftedStore = context.store.liftedStore;
29
+ } else {
30
+ this.liftedStore = props.store.liftedStore;
31
+ }
32
}
33
34
render() {
0 commit comments