Lifecycle Improvements and Workshop Updates
In this release, we've focused on fixing bugs and enhancing lifecycle management.
Animation and Screen Lifecycle
The major update: the resumed state now represents a screen that is fully displayed after all animations have completed.
Previous Behavior
When navigating with animations using ScreenTransition
, ON_START
and ON_RESUME
events were triggered as soon as a screen's content became visible. Similarly, ON_PAUSE
and ON_STOP
were triggered as soon as the screen's content disappeared from the UI.
New Behavior
We’ve introduced a way to detect when animations start and finish for each screen via ON_RESUME
and ON_PAUSE
events:
ON_START
andON_STOP
retain their previous behavior.ON_RESUME
is now called when the appearance animation finishes.ON_PAUSE
is now called when the disappearance animation begins.
What's Changed
- Improved lifecycle support: You can now use
DisposableEffect
to observe the lifecycle by @ikarenkov in #56 - Fixed the order of start events by @ikarenkov in #58
- Added
ON_RESUME
andON_PAUSE
events for transitions by @ikarenkov in #59 - Workshop setup by @ikarenkov in #61
- [BUG-60] Added
preDispose
after state update by @ikarenkov in #62 - Workshop improvements by @ikarenkov in #63
Full Changelog: Compare v0.9.0...v0.10.0