mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
fix: update dependencies in skipSegment callback for accurate state tracking
This commit is contained in:
@@ -78,9 +78,8 @@ export const useSegmentSkipper = ({
|
||||
haptic();
|
||||
}
|
||||
},
|
||||
[segmentType, totalDuration, seek, haptic],
|
||||
[currentSegment, segmentType, totalDuration, seek, haptic],
|
||||
);
|
||||
|
||||
// Auto-skip logic when mode is 'auto'
|
||||
useEffect(() => {
|
||||
if (skipMode !== "auto" || isPaused) {
|
||||
|
||||
Reference in New Issue
Block a user