Skip to content

Fix password state in text field migration snippet#926

Merged
bsagmoe merged 3 commits into
android:mainfrom
nero002:dheeraj/fix-text-field-password-state
May 21, 2026
Merged

Fix password state in text field migration snippet#926
bsagmoe merged 3 commits into
android:mainfrom
nero002:dheeraj/fix-text-field-password-state

Conversation

@nero002
Copy link
Copy Markdown
Contributor

@nero002 nero002 commented May 20, 2026

This corrects a copy-paste error in the text field migration snippet.

Test: ANDROID_HOME=/Users/Dheeraj/Library/Android/sdk ./gradlew :compose:snippets:compileDebugKotlin

@nero002 nero002 requested a review from a team as a code owner May 20, 2026 09:35
@nero002 nero002 requested a review from bsagmoe May 20, 2026 09:35
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request corrects a logic error in the TextField migration snippets where a LaunchedEffect was incorrectly keyed on usernameState instead of passwordState. The reviewer suggested further improving the LaunchedEffect by including loginViewModel as a key to prevent potential stale closure issues.

@nero002 nero002 force-pushed the dheeraj/fix-text-field-password-state branch from f88666d to edd75db Compare May 20, 2026 09:39
@bsagmoe bsagmoe enabled auto-merge (squash) May 21, 2026 17:06
@bsagmoe bsagmoe merged commit 2f888b3 into android:main May 21, 2026
5 checks passed
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.

Typo in TextFieldMigrationSnippets.kt

2 participants