Fixed: Rendering Tweaks to UI

This commit is contained in:
Qstick 2019-02-27 22:15:24 -05:00
parent 2c8b137349
commit 795a445b52
3 changed files with 179 additions and 159 deletions

View file

@ -26,6 +26,13 @@ class PageJumpBar extends Component {
this.computeVisibleItems();
}
shouldComponentUpdate(nextProps, nextState) {
return (
nextProps.items !== this.props.items ||
nextState.height !== this.state.height
);
}
componentDidUpdate(prevProps, prevState) {
if (
prevProps.items !== this.props.items ||