0.5.0 #126
ryanmoelter
announced in
Announcements
0.5.0
#126
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's Changed
2024.02.01and compose compiler to1.5.10Full Changelog: 0.4.1...0.5.0
Breaking change: Introducing the
Startedlifecycle stateStartedreplacesShownand represents "being drawn to the screen with an activeActivityandView" (though we don't really need to care about views in compose). This aligns with Android's use of the term "started". It's also worth noting that ourComposeStep.Content()is only active whenStartedorResumed.Shownis still around, though it now represents "on top of the backstack".show()andhide()are now effectivelynavigatedTo()andnavigatedFrom()respectively.This means that we now have a lifecycle state (and coroutine scope) in which to put work that we want to survive a rotation, but not navigating to another Step. In most cases,
shownScopeis where you want to put work happening in a screen, unless you want it to only run while focused (resumedScope) or while the view/activity is active (startedScope).Activity available +
Compose active
Migration steps
startedScope.shownScope.This discussion was created from the release 0.5.0.
Beta Was this translation helpful? Give feedback.
All reactions