about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-23 21:40:48 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-23 21:40:48 +0100
commit8aab6920348f5e9d4738a20c1cf4b1b74824960b (patch)
tree427801568472d2e457542e31c1cee16f5ea2f5b6 /app/assets
parent434cf8237e7960305b95199b2f0fab75d4da2e60 (diff)
Less re-rendering
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/features/ui/containers/modal_container.jsx3
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;