From 440713ee680fa034fe981e0119777480030464a3 Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Tue, 20 May 2025 15:54:20 +0300 Subject: [PATCH] fix(Player): reset the flag back to false --- src/routes/Player/Player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/Player/Player.js b/src/routes/Player/Player.js index 7a4d5b035..f1e0657d9 100644 --- a/src/routes/Player/Player.js +++ b/src/routes/Player/Player.js @@ -440,6 +440,9 @@ const Player = ({ urlParams, queryParams }) => { defaultSubtitlesSelected.current = false; defaultAudioTrackSelected.current = false; nextVideoPopupDismissed.current = false; + // we need a timeout here to make sure that previous page unloads and the new one loads + // avoiding race conditions and flickering + setTimeout(() => isNavigating.current = false, 1000); }, [video.state.stream]); React.useEffect(() => {