https://kotlinlang.org logo
#compose
Title
# compose
m

Mod

12/29/2022, 6:26 AM
Hi, I have a question please is it a good idea to create a view model for dialog? I have this case where I have a dialog and in the dialog I have to call an api on the confirm button and this dialog is used in multiple screens I asked this question here because the project in compose
c

Colton Idle

12/29/2022, 7:35 AM
I think it can be beneficial to create a viewmodel for a dialog for the case you outlined, yeah.
m

Mod

12/29/2022, 7:56 AM
🙏
2 Views