Fixed: Queue/History take two clicks to load, We don't wait on Episode Fetch

This commit is contained in:
Qstick
2019-07-25 22:52:03 -04:00
parent b6c1c81152
commit 2758adcc8c
2 changed files with 0 additions and 37 deletions

View File

@@ -40,22 +40,6 @@ class Queue extends Component {
};
}
shouldComponentUpdate(nextProps) {
// Don't update when fetching has completed if items have changed,
// before movies start fetching or when movies start fetching.
if (
this.props.isFetching &&
nextProps.isPopulated &&
hasDifferentItems(this.props.items, nextProps.items) &&
nextProps.items.some((e) => e.movieId)
) {
return false;
}
return true;
}
componentDidUpdate(prevProps) {
if (hasDifferentItems(prevProps.items, this.props.items)) {
this.setState((state) => {