Repository navigation
Commit 4fe82cf
fix(tv): Back from detail returned to library main, not browse (issue #66)
The library's A-Z/browse sub-view and filter are in-screen ViewModel
state, not a nav destination. The section-apply effect
(LaunchedEffect(sectionRequestNonce, initialSection)) re-runs on every
re-entry into composition — including returning from ItemDetail — and
re-applied the initial section, resetting the user's tab/filter back to
the library's main (Recommended) view. Gate the apply on the commit
nonce in the ViewModel (which survives the detail round-trip) so a bare
re-entry is a no-op while a genuine cascade re-commit still re-applies.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent d8d8dcb commit 4fe82cf
1 file changed
Lines changed: 22 additions & 0 deletions
File tree
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
| |||
173 | 183 | | |
174 | 184 | | |
175 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
176 | 198 | | |
177 | 199 | | |
178 | 200 | | |
| |||
0 commit comments