We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de190d3 commit 7538094Copy full SHA for 7538094
1 file changed
app/src/main/java/com/neki/android/app/navigation/di/NavigationModule.kt
@@ -7,12 +7,14 @@ import dagger.Module
7
import dagger.Provides
8
import dagger.hilt.InstallIn
9
import dagger.hilt.android.components.ActivityRetainedComponent
10
+import dagger.hilt.android.scopes.ActivityRetainedScoped
11
12
@Module
13
@InstallIn(ActivityRetainedComponent::class)
14
internal object NavigationModule {
15
16
@Provides
17
+ @ActivityRetainedScoped
18
fun providesNavigationState(): NavigationState {
19
return NavigationState(
20
startKey = START_NAV_KEY,
0 commit comments