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
         super(props);
10
         super(props);
11
         this._saveContainerRef = this._saveContainerRef.bind(this);
11
         this._saveContainerRef = this._saveContainerRef.bind(this);
12
         this._assertContainerId(props);
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
       _assertContainerId(props) {
19
       _assertContainerId(props) {
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
       _saveContainerRef(r) {
25
       _saveContainerRef(r) {
30
         this.originalContainerRef = r;
26
         this.originalContainerRef = r;
31
       }
27
       }