yes baybee

This commit is contained in:
ntr 2019-07-19 18:31:37 +10:00
parent 8d8a79c712
commit 52b42b772a
2 changed files with 0 additions and 28 deletions

View File

@ -131,11 +131,6 @@ class ConstructAnimation extends Component {
</div> </div>
); );
} }
// never update, wait til it gets nuked by parent
shouldComponentUpdate({ animTarget }) {
return animTarget === this.props.animTarget;
}
} }

View File

@ -113,29 +113,6 @@ class GameConstruct extends Component {
</div> </div>
); );
} }
shouldComponentUpdate(nextProps) {
const allProps = JSON.stringify(nextProps) === JSON.stringify(this.props);
// console.log(allProps, 'allProps');
// const resProps = JSON.stringify(nextProps.resolution) === JSON.stringify(this.props.resolution);
// console.log(resProps, 'resProps');
// if (!resProps) console.log(JSON.stringify(nextProps.resolution), JSON.stringify(this.props.resolution))
return !(allProps);
// if (!nextProps) return false;
// if (nextProps.activeSkill !== this.props.activeSkill) return true;
// if (!nextProps.game) return false;
// if (nextProps.game.resolved.length !== this.resolvedLength) {
// this.resolvedLength = nextProps.game.resolved.length;
// return true;
// }
// return false;
}
componentWillUnmount() {
console.log('WTF!!!');
}
} }
module.exports = addState(GameConstruct); module.exports = addState(GameConstruct);