mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-29 04:13:03 +00:00
fix unmount logic edgecases
This commit is contained in:
parent
b89c5b7b4f
commit
b40d45cbcb
1 changed files with 2 additions and 0 deletions
|
|
@ -1140,10 +1140,12 @@ const HeroSection: React.FC<HeroSectionProps> = memo(({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTrailerUrl(null);
|
||||||
setTrailerLoading(true);
|
setTrailerLoading(true);
|
||||||
setTrailerError(false);
|
setTrailerError(false);
|
||||||
setTrailerReady(false);
|
setTrailerReady(false);
|
||||||
setTrailerPreloaded(false);
|
setTrailerPreloaded(false);
|
||||||
|
startedOnReadyRef.current = false;
|
||||||
|
|
||||||
// Small delay to avoid blocking the UI render
|
// Small delay to avoid blocking the UI render
|
||||||
timerId = setTimeout(async () => {
|
timerId = setTimeout(async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue