I'm using TextField to get user input and using stateflow to handle the text state/value in viewmodel.
The thing is everytime textfield value changes HomeContent() function get recomposed.
CodePudding user response:
Don't extract a val
outside the HelloContent
's calling site. Move the initialization logic to the lambda.