Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
1.2.0 source code.tar.gz | 2022-08-22 | 329.7 kB | |
1.2.0 source code.zip | 2022-08-22 | 486.1 kB | |
README.md | 2022-08-22 | 1.3 kB | |
Totals: 3 Items | 817.1 kB | 0 |
This release contains the next changes: - Compose updated to 1.2.1 - androidx.lifecycle dependencies updated to 2.5.1 - New API that gives the ability to access ViewModelStores of neighbour entries. This way some of the ViewModels may be easily shared between several screens. This API is available through NavHostScope inside of NavHost. - Support for CreationExtras from Lifecycle 2.5 - other internal improvements/fixes and more test coverage
Breaking changes:
- NavBackHandler's parameter navController
is renamed to controller
for consistency with other methods
- NavId class' constructor is no longer public. It was never meant to be a part of public API.
- NavAction abstract class is interface now
Deprecations:
- NavComponentEntry is renamed to NavHostEntry. The old name is typealiased and deprecated.
- onBackstackChange
is deprecated. It is easily misused and error-prone. Use recommended Compose methods for listening and reacting to snapshot changes of backstack
, e.g. snapshotFlow
, derivedStateOf
, etc.
- navController
delegate for SavedStateHandle is deprecated in favor of the official saveable
delegate