Use pure render mixin now that we use ImmutableJS

This commit is contained in:
lukasmartinelli
2016-09-10 21:35:21 +02:00
parent 575dacdb2c
commit 95ae8892f4
5 changed files with 22 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import BackgroundLayer from './background.jsx'
import MdVisibility from 'react-icons/lib/md/visibility'
import MdVisibilityOff from 'react-icons/lib/md/visibility-off'
import MdDelete from 'react-icons/lib/md/delete'
import PureRenderMixin from 'react-addons-pure-render-mixin';
class UnsupportedLayer extends React.Component {
render() {
@@ -33,6 +34,7 @@ export class LayerEditor extends React.Component {
constructor(props) {
super(props);
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
this.state = {
isOpened: false,
}