MarkRS
07/04/2025, 8:25 AMSergey Y.
07/04/2025, 9:16 AMKamilH
07/04/2025, 1:05 PMMarkRS
07/04/2025, 1:39 PMeygraber
07/04/2025, 5:20 PMKamilH
07/04/2025, 7:19 PMViewModel
ceremony. For example, the Circuit framework provides the `rememberRetained`:
https://slackhq.github.io/circuit/api/0.x/circuit-retained/com.slack.circuit.retained/remember-retained.html
There is also a separate library with similar functionality built by Google’s employer:
https://github.com/marcellogalhardo/retained
Both of them use the ViewModel
under the hood, but you don’t need to deal with it directly. In my opinion, it’s like it should have been implemented from scratch. So simple retain(owner) { ... }
function without the viewModelScope
, : ViewModel()
etc.jw
07/04/2025, 7:24 PMeygraber
07/04/2025, 7:33 PMjw
07/04/2025, 7:38 PMeygraber
07/04/2025, 8:13 PMephemient
07/06/2025, 7:41 PMeygraber
07/06/2025, 7:50 PM