<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.



<h2 id="materializewithcompositionlocalinjection-modifier">materializeWithCompositionLocalInjection</h2>

```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