Referencing my navController inside a `LazyColumn`...
# compose
j
Referencing my navController inside a
LazyColumn
seems to cause an infinite recompose loop. Anyone know why this might be happening?
i
"referencing" or actually doing something with it?
j
In my case it’s just being passed down to another composable:
Copy code
item {
    MyComposable(navController = navController)
}
i
So what is that doing with the NavController?
j
It’s passed down until eventually I use it to navigate as part of an
onClick
. The lower down intermediate composables aren’t recomposing though - just the one which renders
LazyColumn
. I could even just call toString and it will happen:
item { Text(navController.toString()) }
(this will cause it to infinitely recompose)
a
please file a bug with the full code, so we can investigate
j