Describe the bugConstructorStrategyVMFactoryCreator matches compatible ViewModels using constructor parameter size, not constructor parameters signature.
To Reproduceclass TestVM(initialState: MyState, anotherDep: Dependency): VectorViewModel<MyState>
When this VM is given to constructor strategy VM factory, it happily accepts it and causes a crash because there are just two constructor parameters.
Expected behaviorConstructorStrategyVMFactoryCreator should reject this ViewModel because it can not instantiate it.
Describe the bug
ConstructorStrategyVMFactoryCreator
matches compatible ViewModels using constructor parameter size, not constructor parameters signature.To Reproduce
class TestVM(initialState: MyState, anotherDep: Dependency): VectorViewModel<MyState>
When this VM is given to constructor strategy VM factory, it happily accepts it and causes a crash because there are just two constructor parameters.Expected behavior
ConstructorStrategyVMFactoryCreator
should reject this ViewModel because it can not instantiate it.