yes baybee
This commit is contained in:
parent
8d8a79c712
commit
52b42b772a
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user