Hey,
Have a question:
I am using MVVM pattern in the app & my approach is:
After button click from From Fragment A, navigate to Fragment B, call viewmodel, call APIs from the server (usecase, repo & repo impl part), and the result would we shown to UI (Fragment B) after observing the data.
So is there any way that, after button click from Fragment A, call the API and based on the response of the API, show updated UI in the Fragments B.
Current Behaviour ->
Fragment A -> click button-> navigate to Fragment B and do api calls via MVVM
Expected Behaviour ->
Fragment A -> click button -> API call -> show Updated UI in Fragment B
Does anyone know how to achieve this kind of behaviour in our android application?
TIA