Re-organizing components to be more modular, adding loading bars
This commit is contained in:
parent
f820edb463
commit
337462aa5e
31 changed files with 155 additions and 126 deletions
|
@ -31,12 +31,12 @@ const Status = React.createClass({
|
|||
mixins: [PureRenderMixin],
|
||||
|
||||
componentWillMount () {
|
||||
this.props.dispatch(fetchStatus(this.props.params.statusId));
|
||||
this.props.dispatch(fetchStatus(Number(this.props.params.statusId)));
|
||||
},
|
||||
|
||||
componentWillReceiveProps (nextProps) {
|
||||
if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
|
||||
this.props.dispatch(fetchStatus(nextProps.params.statusId));
|
||||
this.props.dispatch(fetchStatus(Number(nextProps.params.statusId)));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue