Skip to content

Commit

Permalink
updating workaround factory doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Nov 19, 2021
1 parent cca50ed commit c0f8984
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,11 @@ class MessageComposerViewModel @AssistedInject constructor(
}

/**
* Can't use the hiltMaverick here because some dependencies are injected here and in fragment but they don't share the graph.
* We're unable to create this ViewModel with `by hiltMavericksViewModelFactory()` due to the
* VoiceMessagePlaybackTracker being ActivityScoped
*
* This factory allows us to provide the ViewModel instance from the Fragment directly
* bypassing the Singleton scope requirement
*/
companion object : MavericksViewModelFactory<MessageComposerViewModel, MessageComposerViewState> {

Expand Down

0 comments on commit c0f8984

Please sign in to comment.