KotlinBloc icon indicating copy to clipboard operation
KotlinBloc copied to clipboard

BlocViewModel?

Open firefinchdev opened this issue 2 years ago • 4 comments

I really liked your implementation of Bloc in kotlin.

ViewModel is finely integrated with Activities (retention on activity recreate, etc) and other Android stuff in general. Also ViewModel is responsible for holding the ui state, and reacting to ui actions (just like Bloc).

So, a BlocViewModel based on AndroidViewModel/ViewModel would be great and really useful.

BlocViewModel would be a AndroidViewModel/ViewModel with all capabilities of Bloc.

Your thoughts?

firefinchdev avatar Jan 26 '22 13:01 firefinchdev