https://kotlinlang.org logo
#android
Title
# android
p

paulex

09/04/2022, 8:20 PM
Is it a good idea to pass an intent to a viewModel ?
😶 3
a

Alex Yordanov

09/04/2022, 8:44 PM
Generally, intents are meant to be passed between activities/services. If you want to get something from that intent in the view model, I’d suggest you just pass that instead of the whole intent
💯 1
p

paulex

09/04/2022, 11:51 PM
Thank you @Alex Yordanov
35 Views