(props)
| 136 | |
| 137 | return class LoadableComponent extends React.Component { |
| 138 | constructor(props) { |
| 139 | super(props); |
| 140 | init(); |
| 141 | |
| 142 | this.state = { |
| 143 | error: res.error, |
| 144 | pastDelay: false, |
| 145 | timedOut: false, |
| 146 | loading: res.loading, |
| 147 | loaded: res.loaded |
| 148 | }; |
| 149 | } |
| 150 | |
| 151 | static contextTypes = { |
| 152 | loadable: PropTypes.shape({ |