---
title: "CompositionLocalContext"
description: "Stores [CompositionLocal]'s and their values.

Can be obtained via [currentCompositionLocalContext] and passed to another composition via
[CompositionLocalProvider].

[CompositionLocalContext] is immutable and won't be changed after its obtaining."
type: "class"
---

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


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

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


```kotlin
public class CompositionLocalContext
internal constructor(internal val compositionLocals: PersistentCompositionLocalMap)
```


Stores `CompositionLocal`'s and their values.

Can be obtained via `currentCompositionLocalContext` and passed to another composition via
`CompositionLocalProvider`.

`CompositionLocalContext` is immutable and won't be changed after its obtaining.



