disable bugged react-hooks rules

This commit is contained in:
jeffvli
2025-11-18 00:02:48 -08:00
parent bd5f2b8f68
commit 05deafdffb
4 changed files with 12 additions and 24 deletions
@@ -149,15 +149,11 @@ export const MpvPlayerEngine = (props: MpvPlayerEngineProps) => {
if (currentSrc) {
// Set current song at position 0 and next song at position 1
mpvPlayer.setQueue(currentSrc, nextSrc, playerStatus !== PlayerStatus.PLAYING);
setTimeout(() => {
setPreviousCurrentSrc(currentSrc);
}, 0);
setPreviousCurrentSrc(currentSrc);
} else {
// Clear queue if no current song
mpvPlayer.setQueue(undefined, undefined, true);
setTimeout(() => {
setPreviousCurrentSrc(undefined);
}, 0);
setPreviousCurrentSrc(undefined);
}
} else {
// If currentSrc hasn't changed but nextSrc has, update position 1