---
title: "currentCompositionLocalContext"
description: "Returns the current [CompositionLocalContext] which contains all [CompositionLocal]'s in the
current composition and their values provided by [CompositionLocalProvider]'s. This context can
be used to pass locals to another composition via [CompositionLocalProvider]. That is usually
needed if another composition is not a subcomposition of the current one."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
public val currentCompositionLocalContext: CompositionLocalContext
```


Returns the current `CompositionLocalContext` which contains all `CompositionLocal`'s in the
current composition and their values provided by `CompositionLocalProvider`'s. This context can
be used to pass locals to another composition via `CompositionLocalProvider`. That is usually
needed if another composition is not a subcomposition of the current one.



