Is there a way to make a layout stable for state/m...
# compose
i
Is there a way to make a layout stable for state/memo calls, while changing a parent composable? Example:
Copy code
@Composable fun Foo(x: Int){
    val bar: @Composable() (@Composable() ()->Unit) -> Unit = if(x == 1) ::BooFar else ::FooBar 
    bar {
       val stable = +memo { UUID.randomUUID().toString() }
       Text(text = stable)
    }
}