Eric Ampire [MOD]
08/05/2021, 3:19 PMmiqbaldc
08/06/2021, 2:57 AMLoading and Error, looks like it is recommended to be defined as Effect instead of StateMikolaj Leszczynski
08/06/2021, 7:26 AMMikolaj Leszczynski
08/06/2021, 7:27 AMmiqbaldc
08/06/2021, 7:41 AMLoading & Error considered as one-off events(?) cmiiw, but yes, I’m also forgot where, is it orbit-mvi or others references 😄Mikolaj Leszczynski
08/06/2021, 7:42 AMmiqbaldc
08/06/2021, 8:09 AMLoading or Error we have to modify/mutate our previous state (to allow calling Loading or Error again)
but, if the OP didn’t have the similar usecase/situtaion, using states for Loading or Error was a good pickMikolaj Leszczynski
08/06/2021, 8:17 AMMikolaj Leszczynski
08/06/2021, 8:18 AMMikolaj Leszczynski
08/06/2021, 8:21 AMMikolaj Leszczynski
08/06/2021, 8:22 AMmiqbaldc
08/06/2021, 10:14 AMState is preferred
a modal dialog or navigation (e.g: start an activity), should be use State, instead of Effect? cmiiwMikolaj Leszczynski
08/06/2021, 10:17 AMeffect, otherwise you get a sticky navigation - every time you subscribe to the view model again (e.g. coming back to the screen) would instantly trigger navigationmiqbaldc
08/06/2021, 11:08 AM(e.g. coming back to the screen)ooops, agreed, forgot the above use cases 🤣. thanks again K 🙏
Eric Ampire [MOD]
08/06/2021, 12:00 PM