Less re-rendering

th-downstream
Eugen Rochko 8 years ago
parent 3710d18889
commit 3bd02ca121

@ -3,6 +3,7 @@ import { closeModal } from '../../../actions/modal';
import Lightbox from '../../../components/lightbox';
import ImageLoader from 'react-imageloader';
import LoadingIndicator from '../../../components/loading_indicator';
import PureRenderMixin from 'react-addons-pure-render-mixin';
const mapStateToProps = state => ({
url: state.getIn(['modal', 'url']),
@ -46,6 +47,8 @@ const Modal = React.createClass({
onOverlayClicked: React.PropTypes.func
},
mixins: [PureRenderMixin],
render () {
const { url, ...other } = this.props;

Loading…
Cancel
Save