ursus
03/04/2026, 8:57 PMviewModel<…>() compile time safe? I.e. if I accidentally dont plug my view model into DI?
Currently it fails at runtime, that no such viewmodel/ factory was sound in the multibound mapwwalkingg
03/05/2026, 12:35 AMursus
03/05/2026, 9:42 AMMohammad Fallah
03/05/2026, 11:07 AMursus
03/05/2026, 11:08 AMMohammad Fallah
03/05/2026, 3:31 PMkoinViewModel and see the type parameter passed to it for example koinViewModel<MyViewModel> and then check if the class MyViewModel is defined and has the correct annotation and is part of the DI graph otherwise fail the compilation.ursus
03/05/2026, 3:42 PMMohammad Fallah
03/05/2026, 4:03 PMursus
03/05/2026, 4:31 PMMohammad Fallah
03/05/2026, 4:56 PMkoinViewModel compile time safe with their new compiler plugin but I haven't tried it yet.ursus
03/05/2026, 4:59 PMMohammad Fallah
03/05/2026, 5:15 PMursus
03/05/2026, 6:11 PM