Skip to content

Fix grammar and wording in documentation - #205

Closed
picklebento wants to merge 2 commits into
androidx:androidx-mainfrom
picklebento:patch-1
Closed

picklebento wants to merge 2 commits into
androidx:androidx-mainfrom
picklebento:patch-1

Conversation

@picklebento

@picklebento picklebento commented Jun 24, 2021 •

Copy link
Copy Markdown

Proposed Changes

  • Grammar fix: Adding a }

Testing

Test: None, since this is documentation

repeatOnLifecycle() makes sense for a cold flow. However, for hot `SharedFlow` and `StateFlow`, they are likely to run on a different coroutineScope such as `viewModelScope`, which is different from the collector's launching lifecycleScope.
Therefore I renamed `uiStateFlow` to `uiDataFlow`, since the former can be easily mistakenly understood as a `StateFlow` for UI.
@google-cla google-cla Bot added the cla: yes label Jun 24, 2021
@picklebento

Copy link
Copy Markdown
Author

Originally I included a renaming:

  • repeatOnLifecycle() makes sense for a cold flow. However, for hot SharedFlowandStateFlow, they are likely to run on a different coroutineScope such as viewModelScope, which is different from the collector's launching lifecycleScope.

On second thought, this is not an issue for SharedFlow or StateFlow with SharingStarted.WhileSubscribed().

@dlam
dlam requested a review from jbw0033 July 3, 2021 00:07
jossiwolf pushed a commit to jossiwolf/androidx that referenced this pull request Jul 16, 2021
## Proposed Changes

  - Grammar fix: Adding a `}`

## Testing

Test: None, since this is documentation

This is an imported pull request from androidx#205.

Resolves androidx#205
Github-Pr-Head-Sha: f4ba6b1
GitOrigin-RevId: b9f6400
Change-Id: Iefd9b1d0d8aa7ce7f61b5eb82aae06833ce14d4f
harryzz pushed a commit to harryzz/compose-multiplatform-core that referenced this pull request Jul 28, 2026
## Proposed Changes

  - Grammar fix: Adding a `}`

## Testing

Test: None, since this is documentation

This is an imported pull request from androidx#205.

Resolves JetBrains#205
Github-Pr-Head-Sha: f4ba6b1
GitOrigin-RevId: b9f6400
Change-Id: Iefd9b1d0d8aa7ce7f61b5eb82aae06833ce14d4f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants