diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-23 21:40:48 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-23 21:40:48 +0100 |
commit | 8aab6920348f5e9d4738a20c1cf4b1b74824960b (patch) | |
tree | 427801568472d2e457542e31c1cee16f5ea2f5b6 /app | |
parent | 434cf8237e7960305b95199b2f0fab75d4da2e60 (diff) |
Less re-rendering
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/components/features/ui/containers/modal_container.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/ui/containers/modal_container.jsx b/app/assets/javascripts/components/features/ui/containers/modal_container.jsx index 66dfe915e..53d162462 100644 --- a/app/assets/javascripts/components/features/ui/containers/modal_container.jsx +++ b/app/assets/javascripts/components/features/ui/containers/modal_container.jsx @@ -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; |