mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Less re-rendering
This commit is contained in:
parent
434cf8237e
commit
8aab692034
@ -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…
Reference in New Issue
Block a user