File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 5757 "octicons" : " =3.5.0" ,
5858 "react" : " =15.0.2" ,
5959 "react-addons-css-transition-group" : " =15.0.2" ,
60+ "react-addons-pure-render-mixin" : " =15.0.2" ,
6061 "react-addons-test-utils" : " =15.0.2" ,
6162 "react-dom" : " =15.0.2" ,
6263 "react-emojione" : " =1.1.1" ,
Original file line number Diff line number Diff line change 1- import React from 'react' ;
21import _ from 'underscore' ;
2+ import React from 'react' ;
3+ import PureRenderMixin from 'react-addons-pure-render-mixin' ;
34import malarkey from 'malarkey' ;
45import { emojify } from 'react-emojione' ;
56
67import constants from '../utils/constants' ;
78
89export default class AllRead extends React . Component {
9-
10- shouldComponentUpdate ( nextProps , nextState ) {
11- return false ;
10+ constructor ( props ) {
11+ super ( props ) ;
12+ this . shouldComponentUpdate = PureRenderMixin . shouldComponentUpdate . bind ( this ) ;
1213 }
1314
1415 componentDidMount ( ) {
Original file line number Diff line number Diff line change 1- import React from 'react' ;
21import _ from 'underscore' ;
2+ import React from 'react' ;
3+ import PureRenderMixin from 'react-addons-pure-render-mixin' ;
34import { emojify } from 'react-emojione' ;
45
56import constants from '../utils/constants' ;
67
78export default class Oops extends React . Component {
8- shouldComponentUpdate ( nextProps , nextState ) {
9- return false ;
9+ constructor ( props ) {
10+ super ( props ) ;
11+ this . shouldComponentUpdate = PureRenderMixin . shouldComponentUpdate . bind ( this ) ;
1012 }
1113
1214 render ( ) {
You can’t perform that action at this time.
0 commit comments