Skip to content

prevent android from caching stale UI from tools - #146

Open
dupontgu wants to merge 1 commit into
mainfrom
fix/stale-ui
Open

prevent android from caching stale UI from tools#146
dupontgu wants to merge 1 commit into
mainfrom
fix/stale-ui

Conversation

@dupontgu

@dupontgu dupontgu commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
  • prevent weather tool from updating every time a button press occurs

(See comment in EntryPoint.kt below for detailed description of the issue)

…l from updating every time a button press occurs
@dupontgu
dupontgu requested a review from aconanlai August 5, 2026 18:06
)

private suspend fun updateState(transform: (WeatherUiState) -> WeatherUiState) {
withContext(Dispatchers.Main) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These MutableStateFlow can be updated safely from whatever context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant