Skip to content
This repository was archived by the owner on Feb 5, 2021. It is now read-only.

Commit 14e800f

Browse files
tmp
1 parent fd296d7 commit 14e800f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core-compose/src/main/java/com/squareup/workflow/ui/compose/internal/ParentComposition.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ internal data class ParentComposition(
5050
* Creates a [ParentComposition] from the current point in the composition and adds it to this
5151
* [ViewEnvironment].
5252
*/
53-
@Composable internal fun ViewEnvironment.withParentComposition(
54-
reference: CompositionReference = compositionReference()
55-
): ViewEnvironment {
53+
@Composable internal fun ViewEnvironment.withParentComposition(): ViewEnvironment {
5654
val compositionReference = ParentComposition(
57-
reference = reference,
55+
reference = compositionReference(),
5856
recomposer = currentComposer.recomposer
5957
)
6058
return this + (ParentComposition to compositionReference)

0 commit comments

Comments
 (0)