-
Notifications
You must be signed in to change notification settings - Fork 200
Replies: 2 comments · 31 replies
-
|
Beta Was this translation helpful? Give feedback.
All reactions
-
@takahirom 2024-09-03 17:10:30.320 31039-31039 AndroidRuntime io.....droidkaigi.confsched2024.dev E FATAL EXCEPTION: main
Process: io.github.droidkaigi.confsched2024.dev, PID: 31039
java.lang.IllegalStateException: You cannot access the NavBackStackEntry's ViewModels after the NavBackStackEntry is destroyed.
at androidx.navigation.NavBackStackEntry.getViewModelStore(NavBackStackEntry.kt:215)
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Could you provide full stacktrace? Does it have Rin code? |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
The full stack trace is as follows. 🫡
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I made it like this screenshot. 🫡 |
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
-
Beta Was this translation helpful? Give feedback.
All reactions
-
👀 1
-
@takahirom package io.github.droidkaigi.confsched.main
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.rememberNavController
@Composable
actual fun provideMainNestedNavController(): NavHostController = rememberNavController()
package io.github.droidkaigi.confsched.main
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
@Composable
expect fun provideMainNestedNavController(): NavHostController
package io.github.droidkaigi.confsched.main
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.rememberNavController
import io.github.takahirom.rin.rememberRetained
@Composable
actual fun provideMainNestedNavController(): NavHostController {
val _mainNestedNavController = rememberNavController()
return rememberRetained { _mainNestedNavController }
}
|
Beta Was this translation helpful? Give feedback.
All reactions
-
@takahirom |
Beta Was this translation helpful? Give feedback.
All reactions
-
It's not negative flag so I think we can try the CADisableMinimumFrameDurationOnPhone flag. (When you run CMP on iOS, the error occur without this) |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
@takahirom
I just added these two things and confirmed that it works, but the problem still seems to be happening. 😨 |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Thank you for confirming! Could you make a PR anyway? I'll debug further. 😭 |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
@takahirom |
Beta Was this translation helpful? Give feedback.
-
Overview
Link
Beta Was this translation helpful? Give feedback.
All reactions