rememberCompositionContext

Functions summary

CompositionContext

An Effect to construct a CompositionContext at the current point of composition.

Cmn

Functions

rememberCompositionContext

@Composable
fun rememberCompositionContext(): CompositionContext

An Effect to construct a CompositionContext at the current point of composition. This can be used to run a separate composition in the context of the current one, preserving CompositionLocals and propagating invalidations. When this call leaves the composition, the context is invalidated.