mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 18:36:21 +03:00
11 lines
509 B
Markdown
11 lines
509 B
Markdown
|
Useful links:
|
||
|
- https://airbnb.io/mavericks/#/new-2x
|
||
|
|
||
|
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.
|