Mohit Gupta’s Post

View profile for Mohit Gupta, graphic

Engineering Android @Meesho | Ex- Koo | Published 5 apps on playstore and counting

Ever wondered about the usage of StateFlows and Compose mutableStates in viewModel. Although, Using mutableStates in viewModel seems to have less and easier code than flows... I generally prefer using StateFlows in viewModel because of the following reasons: 1. Let's have our viewModel Compose free (D of SOLID😅) 2. Maintaining states using savedStateHandle during process death is much easier with flows. 3. The powerful operators of flows are missing in compose states... Let's add any other point in the comment👇 #android #androiddevelopment #jetpackcompose

  • No alternative text description for this image
Akshat Kotpalliwar

DYPCOE , Akurdi, Pune || Web development ||

4mo

Okay , I would suggest put some context to post . job title will get dumb likes

Like
Reply
Jitesh B.

Software Engineer @Persistent Systems | 3x Salesforce Certified Developer

4mo

Interesting insight, Mohit! I'm curious about your thoughts on the performance difference between StateFlows and Compose mutableStates when it comes to handling complex UI updates.

Like
Reply
Yadvendu Kumar

Senior Android Developer - Paytm, Bangalore

4mo

Mohit Gupta the first point really makes it impressive and also aligns with my view point. Great one 👍

See more comments

To view or add a comment, sign in

Explore topics