1
0
Fork 0
mirror of https://github.com/element-hq/element-android synced 2024-12-19 07:45:17 +03:00
element-android/docs/mavericks_migration.md
2021-10-11 17:31:27 +02:00

509 B

Useful links:

Mavericks 2 is replacing MvRx, by removing usage of Rx by Flow, both internally and in the API. See the link ^ to have more intel, but basically, the changes are:

session.rx() => session.flow() room.rx() => room.flow() subscribe { }.disposeOnClear() => onEach { }.launchIn(viewModelScope)

Only using manually onEach requires to add launchIn,any other methods provided by Mavericks on viewModel and activity/fragment are already taking care of lifecycle.