After updated to navigation3 1.0.0-alpha11, using ...
# compose-android
t
After updated to navigation3 1.0.0-alpha11, using
SceneStrategy<T>.then
will cause infinite loop and the app will crash, seems like this line cause the issue.
The correct one would be:
Copy code
public fun <T : Any> SceneStrategy<T>.then(sceneStrategy: SceneStrategy<T>): SceneStrategy<T> =
    object : SceneStrategy<T> {
        override fun SceneStrategyScope<T>.calculateScene(
            entries: List<NavEntry<T>>
        ): Scene<T>? =
            with(this@then) { calculateScene(entries) } ?:
            with(sceneStrategy) { calculateScene(entries) }
    }
i
t
b
Have you even been able to get any to work? I'm trying the list detail strategy and it doesn't work
nvm got it working!