1.0.0-beta02
Pre-release
Pre-release
This release contains the following changes:
- Compose dependencies updated to 1.1.0
- Pause/stopped lifecycle events can be properly received in your composable now. Previously, a composable could be disposed without receiving these events.
- NavComponentEntry class is now public. It owns Lifecycle, SavedStateRegistry and ViewModelStore. It is a direct analogue of NavBackStackEntry and may be used for instance checks (e.g. when creating view models with Hilt).
- NavBackstack now exposes its last NavAction though
action
property NavAction.Idle
is the initial action for every new NavController instance- NavAction hierarchy is simplified
Breaking changes:
NavAction.Forward
andNavAction.Backward
types are gone. Check for specific action types such asNavAction.Pop
,NavAction.Navigate
,NavAction.Replace
directly.onBackstackChange
listener now passesNavBackstack
parameter instead ofList<NavEntry>