fix(history): a sub-view reads only its own module's from the entry it mounts on

The entry's _sub now names its owner (_subOf, the module's address key). Signed out on a Plex season,
the sign-in card took the season for one of its modes and rendered a card with an empty button; the
other way round, Plex took the card's register view for one of its own. An entry an older build wrote
is read as the module's only when its address names one of that module's views.
This commit is contained in:
2026-10-28 00:29:40 +01:00
parent 8804bdde63
commit 99a33e7fd1
3 changed files with 66 additions and 10 deletions
@@ -45,7 +45,7 @@ beforeAll(() => {
globalThis.ResizeObserver ??= Stub as unknown as typeof ResizeObserver;
globalThis.IntersectionObserver ??= Stub as unknown as typeof IntersectionObserver;
});
beforeEach(() => window.history.replaceState({ _sub: { kind: "grid" } }, ""));
beforeEach(() => window.history.replaceState({ _sub: { kind: "grid" }, _subOf: "v" }, ""));
afterEach(() => {
cleanup();
vi.restoreAllMocks();