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

Commit 8886833

Browse files
Revert "tmp"
This reverts commit 14e800f.
1 parent 14e800f commit 8886833

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ 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(): ViewEnvironment {
53+
@Composable internal fun ViewEnvironment.withParentComposition(
54+
reference: CompositionReference = compositionReference()
55+
): ViewEnvironment {
5456
val compositionReference = ParentComposition(
55-
reference = compositionReference(),
57+
reference = reference,
5658
recomposer = currentComposer.recomposer
5759
)
5860
return this + (ParentComposition to compositionReference)

0 commit comments

Comments
 (0)