Replies: 1 comment
-
I was able to find a way around it. Though there probably is a nicer way 😅
Hopefully this helps someone else out with a similar usage of Koin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I upgraded from 3.1.2 to 3.1.4 (Android not KMM) today and have ran into an issue with one of the functions I make a lot of use of.
I have abstract classes for Activities and Fragments setup like so:
I have the base Activity and Fragment set up this way to make it easy to add new ones, without having to override the viewModel field unless absolutely necessary i.e. if you need a
sharedViewModel
.Unfortunately in 3.1.4 I'm unable to use the viewModel function that passes the
clazz
parameter in this format, using theby
keyword. I can't use the otherviewModel
functions as they need thereified
type forVM
, which is only possible when setting Generic parameters on inline functions. Even when opting into using this I can't get it to allow me to use it here (this function has theOptIn
annotation attached).Does anyone have any suggestions on how to work around this in 3.1.4?
Beta Was this translation helpful? Give feedback.
All reactions