mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 09:35:42 +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;
|
||||
}
|
||||
|
||||
setTrailerUrl(null);
|
||||
setTrailerLoading(true);
|
||||
setTrailerError(false);
|
||||
setTrailerReady(false);
|
||||
setTrailerPreloaded(false);
|
||||
startedOnReadyRef.current = false;
|
||||
|
||||
// Small delay to avoid blocking the UI render
|
||||
timerId = setTimeout(async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue