CompositionRoot

typealias CompositionRoot = @Composable (content: @Composable () -> Unit) -> Unit

A composable function that will be used to wrap the first (highest-level) ScreenComposableFactory view factory in a composition. This can be used to setup any composition locals that all ScreenComposableFactory factories need access to, such as UI themes.

This function will called once, to wrap the highest-level ScreenComposableFactory in the tree. However, composition locals are propagated down to child ScreenComposableFactory compositions, so any locals provided here will be available in all ScreenComposableFactory compositions.