Repository navigation
Conversation
…ositions Back from any page rebuilt the whole Feed in one frame because NavHost disposed Home. Home now stays composed under the NavHost and is only skipped from layout while covered. Also: - theme only rebuilds when a theme setting changes; any unrelated DataStore write used to recompose the whole app - Library no longer flips isLoading on every resume - page transitions slide instead of fading the full screen
The mini player clearances and the glass backdrop were static CompositionLocals whose values follow the route and the player sheet. A static local that changes recomposes its whole subtree, so every navigation and every player open recomposed every screen, Home rows included. Make them dynamic so only their readers recompose. Home is also measured while covered and only skipped at placement, so coming back is a re-place instead of a full remeasure.
…ayers The bottom bar was rebuilt every time Home came back; it now stays composed and is only left unplaced on other screens. The Feed hero and spotlight artwork used Modifier.alpha, which made the GPU render each full-width card offscreen on every frame Home was drawn. Use AsyncImage's paint alpha instead.
The LinkageError retry branch referenced an undefined retryError, and two companion markers exposed the private QueuedPcm type.
Contributor
Author
|
Moved to #765. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeps Home alive under pushed screens and stops route and theme changes from recomposing the whole app, so opening and closing pages no longer stutters (also fixes the current compile errors on main).