Live Date vs State Flow:observing vs collecting
let's assume we have two Activities(A and B),
when navigate from A(that has live data or flow) -> B
then navigate back from B -> A.
if we observe using live data :
live data will not observe the data again.
if we use collecting flow using repeatOnLifeCycle Api or(flowWithLifecycle) :
to achieve Live data scenario we use Lifecycle.State.STARTED,
but that will be different from live data when we navigate from A -> B then navigate back from B -> A , the flow is re-collecting .
if some one...