Skip to content

0.9.0

Latest
Compare
Choose a tag to compare
@xxfast xxfast released this 04 Dec 23:04
· 1 commit to main since this release

What's Changed

  • Add new inline rememberRouter variants by @xxfast in #101
  • Add inline variant for rememberOnRoute by @xxfast in #104

Breaking Changes ⚠️

  1. rememberRouter with type parameter is now deprecated, and will be removed in the next release.
- val router: Router<Screen> = rememberRouter(type = Screen::class) { listOf(List) } 
+ val router: Router<Screen> = rememberRouter { listOf(List) } 
  1. rememberOnRoute with type parameter is now deprecated, and will be removed in the next release.
- val viewModel: ViewModel = rememberOnRoute(type = ViewModel::class) { ViewModel() } 
+ val viewModel: ViewModel = rememberOnRoute { ViewModel() }  
  1. RouterContext is now the receiver of the rememberOnRoute's block
- val viewModel: ViewModel = rememberOnRoute { context: RouterContext -> ViewModel(context) } 
+ val viewModel: ViewModel = rememberOnRoute { ViewModel(this) }

Full Changelog: 0.8.0...0.9.0