From 52b42b772abd68e592d922fb278cb424ad763bad Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 19 Jul 2019 18:31:37 +1000 Subject: [PATCH] yes baybee --- client/src/components/animations.jsx | 5 ----- client/src/components/game.construct.jsx | 23 ----------------------- 2 files changed, 28 deletions(-) diff --git a/client/src/components/animations.jsx b/client/src/components/animations.jsx index 7e0ad94a..1a4e3ee6 100644 --- a/client/src/components/animations.jsx +++ b/client/src/components/animations.jsx @@ -131,11 +131,6 @@ class ConstructAnimation extends Component { ); } - - // never update, wait til it gets nuked by parent - shouldComponentUpdate({ animTarget }) { - return animTarget === this.props.animTarget; - } } diff --git a/client/src/components/game.construct.jsx b/client/src/components/game.construct.jsx index 064cfbd8..5e284e07 100644 --- a/client/src/components/game.construct.jsx +++ b/client/src/components/game.construct.jsx @@ -113,29 +113,6 @@ class GameConstruct extends Component { ); } - - 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);