Skip to content

Commit

Permalink
Merge pull request #1210 from square/ray/dont-go-like-that
Browse files Browse the repository at this point in the history
Update kdoc on Android flavor of `renderWorkflowIn`
  • Loading branch information
rjrjr authored Jul 16, 2024
2 parents 2d2c171 + 46d2e59 commit 89d3a0f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import kotlinx.coroutines.flow.stateIn
* An Android `ViewModel`-friendly wrapper for [com.squareup.workflow1.renderWorkflowIn],
* for use with a [workflow] that takes no input (that is, has `PropsT` set to [Unit]).
*
* **WARNING** Note that this function returns a `StateFlow<RenderingT>`, and bear in mind
* that `StateFlow` swallows updates to new values that are [equals] to the current
* one -- which is likely to be the case most of the time if your root `RenderingT`
* implementation is a `data class`.
*
* @OptIn(WorkflowUiExperimentalApi::class)
* class HelloWorkflowActivity : AppCompatActivity() {
* override fun onCreate(savedInstanceState: Bundle?) {
Expand Down

0 comments on commit 89d3a0f

Please sign in to comment.