Companion
object Companion
Functions
Link copied to clipboard
fun createScopedComponentContextWithStateForTest(parent: ComponentContext, component: Component, key: String): ComponentContext
Link copied to clipboard
Link copied to clipboard
Checks if incremental mount is enabled given a ComponentContext, so you can throw an error if you require that incremental mount is enabled (e.g. you use visibility callbacks). This is static to avoid polluting the ComponentContext API.
Link copied to clipboard
Link copied to clipboard
Creates a new ComponentContext based on the given ComponentContext, propagating log tag, logger, and tree props. This should be used when creating a ComponentContext for a nested ComponentTree (e.g. see HorizontalScrollSpec).
Link copied to clipboard
fun withComponentScope(parentContext: ComponentContext, scope: Component, globalKey: GlobalKey?): ComponentContext
Creates a new ComponentContext instance scoped to the given component and sets it on the component.
fun withComponentScope(parentContext: ComponentContext, scope: Component, globalKey: String?): ComponentContext