Hello. Is there a stable way to disable interactio...
# compose
a
Hello. Is there a stable way to disable interaction with a whole sub-tree in a parent? E.g. I have the following function:
Copy code
@Composable
fun Foo(content: @Composable () -> Unit) {
    var enabled by remember { mutableStateOf(true) }
    
    Box(
        modifier = Modifier // Disable the sub-tree if not enabled
    ) {
        content()
    }
}
How can I disable the
content
? So far I discovered
Modifier.pointerInteropFilter { true }
which seems working, but it is marked as experimental with level
ERROR
.
a