Hey folks! I want to assisted inject the ViewModel...
# mvrx
g
Hey folks! I want to assisted inject the ViewModel using Hilt with more parameters along with the initial state. Is this provided by the framework? I can't really see a way to achieve this out of the box. This is what I want to achieve:
Copy code
class MemesViewModel @AssistedInject constructor(
    @Assisted initialState: MemesState,
    @Assisted viewRenderer: MemesViewRenderer,
    @Assisted sideEffectHandler: MemesSideEffectHandler,
    private val repository: MemesRepository,
    private val dispatcherProvider: DispatcherProvider
) : MavericksViewModel<MemesState>(initialState) {
    ...
}