---
title: "materializeWithCompositionLocalInjection"
description: "This function exists solely for solving a backwards-incompatibility with older compilations that
used an older version of the `Layout` composable. New code paths should not call this. More
details can be found at https://issuetracker.google.com/275067189"
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Kept for backwards compatibility only. If you are recompiling, use materialize.

```kotlin
fun Composer.materializeWithCompositionLocalInjection(modifier: Modifier): Modifier
```


This function exists solely for solving a backwards-incompatibility with older compilations that
used an older version of the `Layout` composable. New code paths should not call this. More
details can be found at https://issuetracker.google.com/275067189



