Merge pull request 'fix(mobile): dismiss player when navigating to library' (#53) from t3/fix-player-menu-navigation into main

This commit was merged in pull request #53.
This commit is contained in:
joshuafhiggins committed 2026-11-01 17:31:39 -05:00
commit 9e8099dbde
1 file changed
+7
+7
View File
@@ -38,6 +38,13 @@ export function useAppNavigation() {
const router = useRouter()
const push = useCallback((path: string) => {
if (activeSegmentsRef.current.includes("player")) {
// Leave the root player modal before navigating into the library stack.
router.dismiss()
router.navigate(tabPath("library", path))
return
}
router.push(tabPath(getActiveTabFromRef(), path))
}, [router])