fix(plex): a Surprise draw stays put until its reshuffle

The rail's query was always stale, so Back from a card's player or page remounted it into a new
draw, as did a return to the window: the card just looked at was gone. It now stands until the
reshuffle (or another scope, language or filter) asks for a new one.
This commit is contained in:
2026-10-09 01:29:12 +02:00
parent 3eb87e7108
commit 942154cf49
2 changed files with 36 additions and 2 deletions
+4 -1
View File
@@ -134,7 +134,10 @@ export default function PlexDiscover({
shown.map((c) => c.id),
);
},
staleTime: 0,
// A draw stands until ↻ (or another scope, language or filter) asks for a new one. A stale one was
// redrawn on every remount — Back from the player or a show page — and on a return to the window,
// so the card just looked at was gone from the rail it came from.
staleTime: Infinity,
});
// Watched toggle over BOTH this surface's cache (so a rail card flips instantly) and the surprise