fix(mobile): open library albums in the library tab #141

Merged
joshuafhiggins merged 1 commits from t3/fix-library-album-navigation into main 2026-11-20 02:11:57 -05:00
Owner

Tapping an album under Recently Added on the mobile Library page switched to the Home tab and opened the album there.

Album and playlist cards built their link from a global active-tab ref read at render time. Library cards could render (often straight from cache) before that ref caught up with the tab switch, so their links pointed at home, and the memoized cards kept the stale link.

Each tab stack layout (home, library, search, and the tablet section groups) now provides its own tab through a TabStackContext, and useAppNavigation resolves href/push/replace against it. The global ref is still the fallback outside tab stacks (player, settings).

Made by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Tapping an album under Recently Added on the mobile Library page switched to the Home tab and opened the album there. Album and playlist cards built their link from a global active-tab ref read at render time. Library cards could render (often straight from cache) before that ref caught up with the tab switch, so their links pointed at `home`, and the memoized cards kept the stale link. Each tab stack layout (home, library, search, and the tablet section groups) now provides its own tab through a `TabStackContext`, and `useAppNavigation` resolves `href`/`push`/`replace` against it. The global ref is still the fallback outside tab stacks (player, settings). Made by Claude Opus 5.5 in Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
joshuafhiggins added 1 commit 2026-11-20 02:00:41 -05:00
Album cards built their link from a global active-tab ref read at render
time. Cards on the library page could render before the ref caught up with
the tab switch, so their links pointed at the home tab. Each tab stack now
provides its own tab through context, and navigation resolves against it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joshuafhiggins merged commit 1c27206bd2 into main 2026-11-20 02:11:57 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joshuafhiggins/otunes#141