targetting arrows shouldUpdate
This commit is contained in:
parent
85591ec857
commit
7355f0668f
@ -27,6 +27,16 @@ class TargetSvg extends Component {
|
||||
}, 500);
|
||||
}
|
||||
|
||||
shouldComponentUpdate(newProps) {
|
||||
if (newProps.game !== this.props.game) return true;
|
||||
if (newProps.account !== this.props.account) return true;
|
||||
if (newProps.animating !== this.props.animating) return true;
|
||||
if (newProps.animSkill !== this.props.animSkill) return true;
|
||||
if (newProps.gameEffectInfo !== this.props.gameEffectInfo) return true;
|
||||
if (newProps.tutorialGame !== this.props.tutorialGame) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
render(props, state) {
|
||||
const { game, account, animating, animSkill, itemInfo, gameEffectInfo, tutorialGame } = props;
|
||||
const { width, height } = state;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user