Emilio Colindres
05/25/2025, 11:12 PMEmilio Colindres
05/25/2025, 11:14 PMScreen
class, which has an abstract @Composable Content()
method that is the entrypoint for that screen's ui.
In order to reduce boilerplate, i have this content
function in my Screen class: (edit: moved it to a snippet)
it's meant to be used in a Screen
implementation's Content()
implementation like this: (edit: moved to snippet)
my current issue is that the koinViewModel call will resolve to, using the above as an example, CarthasViewModel, which is my abstract vm class. This causes koin not to be able to find the vm class since the definition is of a CreateEventViewModel type. what's the best way to get around this without explicitly doing content<CreateEventViewModel, CreateEventState, CreateEventIntent> { }
? again the purpose is to reduce boilerplate, so i'd really like to avoid having to specify all of the type params every timeEmilio Colindres
05/25/2025, 11:22 PMEmilio Colindres
05/25/2025, 11:23 PMEmilio Colindres
05/26/2025, 12:07 AMcontent<_,_,CreateEventViewModel> { }