Skip to content

Stuck "MutableHomeState" in HomeViewModel #29

Answered by PatilShreyas
dangnghia2101 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dangnghia2101, You can see this file
https://github.com/PatilShreyas/Foodium-KMM/blob/main/shared/src/commonMain/kotlin/ui/screen/home/HomeState.kt

Also, you'll notice that the interface is annotated with @GenerateMutableModel. This is a part of Mutekt processor which generates a mutable model for easy modification of values. So MutableHomeState is generated at the time of building project which will have all the parameters as mutable (var) which are there defined in the interface.

I hope this clears the doubt. Let me know for more queries.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PatilShreyas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants