diff --git a/workflow-ui/compose/src/main/java/com/squareup/workflow1/ui/compose/ScreenComposableFactory.kt b/workflow-ui/compose/src/main/java/com/squareup/workflow1/ui/compose/ScreenComposableFactory.kt index 9a0745438..5b1c28777 100644 --- a/workflow-ui/compose/src/main/java/com/squareup/workflow1/ui/compose/ScreenComposableFactory.kt +++ b/workflow-ui/compose/src/main/java/com/squareup/workflow1/ui/compose/ScreenComposableFactory.kt @@ -10,7 +10,6 @@ import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.remember import androidx.compose.ui.platform.ComposeView import androidx.compose.ui.platform.LocalLifecycleOwner -import androidx.compose.ui.platform.ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed import androidx.compose.ui.viewinterop.AndroidView import androidx.lifecycle.setViewTreeLifecycleOwner import com.squareup.workflow1.ui.Screen @@ -126,7 +125,6 @@ public fun ScreenComposableFactory.asViewFactory(): container: ViewGroup? ): ScreenViewHolder { val view = ComposeView(context) - view.setViewCompositionStrategy(DisposeOnViewTreeLifecycleDestroyed) return ScreenViewHolder(initialEnvironment, view) { newRendering, environment -> // Update the state whenever a new rendering is emitted.