https://kotlinlang.org logo
#orbit-mvi
Title
# orbit-mvi
m

miqbaldc

12/22/2021, 12:36 PM
Any references/guidances when to define States or SideEffect for this usecase? 1. Initial State 2. Get User 3. Upload Photo Profile 4. Update User Profile 5. Get User (to update preferences) This is our current implementation in 🧵
b

Benoît

12/23/2021, 2:13 PM
Hi @miqbaldc, what are you asking exactly? Do you want help with the definition of your model?
m

miqbaldc

12/23/2021, 2:15 PM
Our team still struggle when to define a States or Effect for no. 5 in the above thread as in no. 5, we only show a Bottom Dialog and close the screen (internally we store it to a local data/shared preferences)
we assume: 1. show bottom dialog - side effect 2. get user and update local data (before finishing the screen/activity) - also side effect
b

Benoît

12/23/2021, 2:22 PM
Can't you just post 2 side effects?
🙏 1
✍️ 1
3 Views