React/Redux - publish component #323
|
@ -22,7 +22,6 @@ class ChannelSelector extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
componentWillReceiveProps ({ loggedInChannelName }) {
|
componentWillReceiveProps ({ loggedInChannelName }) {
|
||||||
console.log('ChannelSelector will receive props');
|
|
||||||
if (loggedInChannelName) {
|
if (loggedInChannelName) {
|
||||||
this.selectOption(loggedInChannelName);
|
this.selectOption(loggedInChannelName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,6 @@ class Preview extends React.Component {
|
||||||
Generally you should avoid doing dom stuff/setting state in
Generally you should avoid doing dom stuff/setting state in `componentWillMount`. Especially since it seems that they will be removing it in a future React version.
`componentDidMount` is preferred
|
|||||||
this.previewFile(this.props.file);
|
this.previewFile(this.props.file);
|
||||||
}
|
}
|
||||||
componentWillReceiveProps (newProps) {
|
componentWillReceiveProps (newProps) {
|
||||||
console.log('Preview will receive props', newProps);
|
|
||||||
Generally you should avoid doing dom stuff/setting state in
Generally you should avoid doing dom stuff/setting state in `componentWillMount`. Especially since it seems that they will be removing it in a future React version.
`componentDidMount` is preferred
|
|||||||
this.previewFile(newProps.file);
|
this.previewFile(newProps.file);
|
||||||
}
|
}
|
||||||
previewFile (file) {
|
previewFile (file) {
|
||||||
|
|
||||||
Generally you should avoid doing dom stuff/setting state in
Generally you should avoid doing dom stuff/setting state in `componentWillMount`. Especially since it seems that they will be removing it in a future React version.
`componentDidMount` is preferred
Generally you should avoid doing dom stuff/setting state in
Generally you should avoid doing dom stuff/setting state in `componentWillMount`. Especially since it seems that they will be removing it in a future React version.
`componentDidMount` is preferred
|
|
@ -23,7 +23,6 @@ class UrlChooser extends React.Component {
|
||||||
You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
componentWillReceiveProps ({claim: newClaim}) {
|
componentWillReceiveProps ({claim: newClaim}) {
|
||||||
console.log('PublishUrlInput will receive new props (claim)', newClaim);
|
|
||||||
You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
|||||||
if (newClaim) {
|
if (newClaim) {
|
||||||
this.checkClaimIsAvailable(newClaim);
|
this.checkClaimIsAvailable(newClaim);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements). You should look at some of the linting additions @IGassman has added to app, could help keep these imports consistent in path specification (among other improvements).
|
Generally you should avoid doing dom stuff/setting state in
componentWillMount
. Especially since it seems that they will be removing it in a future React version.componentDidMount
is preferred