Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update broken Dagger/Hilt documentation links #691

Merged
merged 2 commits into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading