Daniel Zlotin 7 years ago
parent
commit
9e77ee25d1
1 changed files with 4 additions and 8 deletions
  1. 4
    8
      lib/src/containers/ContainerWrapper.js

+ 4
- 8
lib/src/containers/ContainerWrapper.js View File

@@ -10,7 +10,10 @@ class ContainerWrapper {
10 10
         super(props);
11 11
         this._saveContainerRef = this._saveContainerRef.bind(this);
12 12
         this._assertContainerId(props);
13
-        this._createState(props);
13
+        this.state = {
14
+          containerId: props.containerId,
15
+          allProps: _.merge({}, props, store.getPropsForContainerId(props.containerId))
16
+        };
14 17
       }
15 18
 
16 19
       _assertContainerId(props) {
@@ -19,13 +22,6 @@ class ContainerWrapper {
19 22
         }
20 23
       }
21 24
 
22
-      _createState(props) {
23
-        this.state = {
24
-          containerId: props.containerId,
25
-          allProps: _.merge({}, props, store.getPropsForContainerId(props.containerId))
26
-        };
27
-      }
28
-
29 25
       _saveContainerRef(r) {
30 26
         this.originalContainerRef = r;
31 27
       }