nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

Refactor | Added extension functions

Open LinX64 opened this issue 1 year ago • 0 comments

This PR is about polishing codes, and using extension functions for StateIn() (mostly in ViewModels).

Basically, all of the StateIn() functions inside ViewModels were following/using the same pattern, so I decided to create two extension functions for use in both ViewModels using viewModelScope, as well as CoroutineScope outside of ViewModels.

LinX64 avatar Nov 20 '22 15:11 LinX64