Skip to content

Commit 89d3a0f

Browse files
authored
Merge pull request #1210 from square/ray/dont-go-like-that
Update kdoc on Android flavor of `renderWorkflowIn`
2 parents 2d2c171 + 46d2e59 commit 89d3a0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/AndroidRenderWorkflow.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import kotlinx.coroutines.flow.stateIn
1818
* An Android `ViewModel`-friendly wrapper for [com.squareup.workflow1.renderWorkflowIn],
1919
* for use with a [workflow] that takes no input (that is, has `PropsT` set to [Unit]).
2020
*
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+
*
2126
* @OptIn(WorkflowUiExperimentalApi::class)
2227
* class HelloWorkflowActivity : AppCompatActivity() {
2328
* override fun onCreate(savedInstanceState: Bundle?) {

0 commit comments

Comments
 (0)