Skip to content

Commit

Permalink
Update broken Dagger/Hilt documentation links (#691)
Browse files Browse the repository at this point in the history
* Update broken hilt example doc link

* Update dagger.md
  • Loading branch information
langsmith authored Sep 7, 2023
1 parent 317c92e commit ed000fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`MavericksViewModelFactory` can be combined with Dagger's [assisted injection](https://dagger.dev/dev-guide/assisted-injection) to provide seamless integration with Dagger.

For more information and working example, check out our [hellodagger](https://github.com/airbnb/MvRx/tree/main/hellodagger) example on GitHub.
For more information and working example, check out our [sample-dagger](https://github.com/airbnb/mavericks/tree/main/sample-dagger) example on GitHub.

```kotlin
class HelloDaggerViewModel @AssistedInject constructor(
Expand All @@ -24,7 +24,7 @@ class HelloDaggerViewModel @AssistedInject constructor(

Mavericks also works great with Hilt. One difference from standard ViewModels is that instead of using the standard `ViewModelComponent` which is a subcomponent of `ActivityRetainedComponent`, you have to use `MavericksViewModelComponent` which is a child of `SingletonComponent`. However, this is functionally the same and you get all of the same benefits of a view model scoped component in which you can share dependencies between different components in the view model graph.

For more information and working example, check out our [hellohilt](https://github.com/airbnb/MvRx/tree/main/hellohilt) example on GitHub.
For more information and working example, check out our [sample-hilt](https://github.com/airbnb/mavericks/tree/main/sample-hilt) example on GitHub.

```kotlin
import com.airbnb.mvrx.hilt.AssistedViewModelFactory
Expand Down

0 comments on commit ed000fd

Please sign in to comment.