Auto-marking a video watched near its end invalidates the feed query; the refetched/reordered queue can no longer contain the playing item, so findIndex returned -1 and the active item fell back to queue[0] — silently jumping playback to an unrelated video and defeating Loop "One" (and auto-advance:off). Pin the last resolved video in a ref and keep playing it when it drops out of the queue instead of snapping to queue[0]. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||