Uh oh!
There was an error while loading. Please reload this page.
fix: channel detail black screen - #838
Conversation
- Change Routes.ChannelDetail to accept channelId parameter - Update ChannelDetailScreen to fetch channel on initialization - Replace early return with loading state when channel is null - Navigate directly to detail screen with channelId - Remove intermediate navigation through list screen - Fix predictive back gesture by eliminating blank composable state Fixes#668 Co-authored-by: Ovi Trif <ovitrif@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
a7fe03a to
20eb8f5CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ovitrif
commented
Mar 11, 2026
@claude Summarize the changes for reviewers. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Fixes#668
This PR:
ChannelDetailViewModelandCloseConnectionViewModelfrom the monolithicLightningConnectionsViewModelDescription
The channel detail and close connection screens previously depended on a shared parent ViewModel (
LightningConnectionsViewModel) to hold the selected channel state. This caused black screens when navigating back and forth, since the shared state could be lost during back-stack restoration or recomposition.The fix converts
Routes.ChannelDetailandRoutes.CloseConnectionfromdata objecttodata classwith achannelIdparameter, making each screen self-contained. Each screen now has its own ViewModel that loads channel data independently using the passed ID.Additional improvements:
Preview
before_1.75x.mp4
after_1.75x.mp4
QA Notes
Tests
Regression Tests (pick a few randomly)