Skip to content

0.5.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Aug 16:54
· 102 commits to master since this release

Update dependencies

Added

  • StackValidationMode: Introduced a new sealed interface StackValidationMode to handle
    different stack validation modes in the navigation stack. This interface includes three
    implementations:

    • Strict: Ensures the stack is always in a valid state and throws an exception if it transitions
      to an invalid state.
    • Lenient: Ensures the stack is always in a valid state but takes no action if it transitions to
      an invalid state.
    • Warning: Ensures the stack is always in a valid state and logs a warning if it transitions to
      an invalid state.
  • NavHost: Added a new parameter stackValidationMode: StackValidationMode to the NavHost
    composable.
    Default value is StackValidationMode.Lenient.

    NavHost(
      startRoute = LoginScreenRoute,
      destinations = AllDestinations,
      navEventNavigator = navigator,
      destinationChangedCallback = { currentRoute = it },
      stackValidationMode = StackValidationMode.Warning.Debug, // <--- Set the stack validation mode
    )

Fixed

  • Lifecycle*Effect completion is now idempotent (i.e., if the onStopOrDispose was called because
    of the Lifecycle being stopped, it won’t be called a second time upon disposal unless the
    Lifecycle goes back up to STARTED again).