parent
0de45574e0
commit
b7f241faed
|
@ -43,11 +43,19 @@ export default class Compose extends React.PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
this.props.dispatch(mountCompose());
|
const { isSearchPage } = this.props;
|
||||||
|
|
||||||
|
if (!isSearchPage) {
|
||||||
|
this.props.dispatch(mountCompose());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount () {
|
componentWillUnmount () {
|
||||||
this.props.dispatch(unmountCompose());
|
const { isSearchPage } = this.props;
|
||||||
|
|
||||||
|
if (!isSearchPage) {
|
||||||
|
this.props.dispatch(unmountCompose());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onFocus = () => {
|
onFocus = () => {
|
||||||
|
|
Loading…
Reference in New Issue