mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-24 10:43:45 +00:00
nextProps added
This commit is contained in:
parent
d6d468f63c
commit
490a62433c
1 changed files with 6 additions and 3 deletions
|
|
@ -45,8 +45,11 @@ class Settings extends Component {
|
|||
});
|
||||
}
|
||||
|
||||
shouldComponentUpdate(nextState) {
|
||||
return nextState.selectedMenu !== this.state.selectedMenu;
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
return nextState.decodingEnabled !== this.state.decodingEnabled ||
|
||||
nextState.autoplayEnabled !== this.state.autoplayEnabled ||
|
||||
nextState.dataSaverEnabled !== this.state.dataSaverEnabled ||
|
||||
nextState.selectedMenu !== this.state.selectedMenu;
|
||||
}
|
||||
|
||||
renderPlayerSettings = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue