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

Mahmoud Mabrok

12/28/2022, 9:05 PM
Hi all, I have a dialog and open fragments inside it, so I have a shared view model between dialog and fragments Question, when I want to share data between fragments use shared vm to hold data or pass data as bundle to fragments Note, fragments are replaced in container using fragment manager.
😶 1
d

Debdut Saha

12/29/2022, 4:16 AM
You should use shared viemodel if your data size is large. Because android has size restriction on passing data between fragments.
👍 1
3 Views