File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ import kotlinx.coroutines.flow.stateIn
18
18
* An Android `ViewModel`-friendly wrapper for [com.squareup.workflow1.renderWorkflowIn],
19
19
* for use with a [workflow] that takes no input (that is, has `PropsT` set to [Unit]).
20
20
*
21
+ * **WARNING** Note that this function returns a `StateFlow<RenderingT>`, and bear in mind
22
+ * that `StateFlow` swallows updates to new values that are [equals] to the current
23
+ * one -- which is likely to be the case most of the time if your root `RenderingT`
24
+ * implementation is a `data class`.
25
+ *
21
26
* @OptIn(WorkflowUiExperimentalApi::class)
22
27
* class HelloWorkflowActivity : AppCompatActivity() {
23
28
* override fun onCreate(savedInstanceState: Bundle?) {
You can’t perform that action at this time.
0 commit comments