mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
The NavHost registers its own back callback after ours, so on a pushed route it won the back and popped the route under the now playing overlay. Re-register our callback on every navigation (DisposableEffect on the current route) so it is always the most recent, and toggle its enabled state with the overlay/queue.