refactor(Player): remove player.libraryItem from onEnded callback deps

This commit is contained in:
Tim 2022-11-28 11:29:27 +01:00
parent 44944ce3d0
commit 76e3944fb9

View file

@ -113,7 +113,7 @@ const Player = ({ urlParams, queryParams }) => {
} else {
window.history.back();
}
}, [player.libraryItem, player.nextVideo, onPlayNextVideoRequested]);
}, [player.nextVideo, onPlayNextVideoRequested]);
const onError = React.useCallback((error) => {
console.error('Player', error);
if (error.critical) {