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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user