hi. somewhere i heard about Flow.collectAsState wi...
# compose
m
hi. somewhere i heard about Flow.collectAsState with an "InLifecycle" or "OnLifecycle" appended. It is preferred to the regular collectAsState. Anybody has more infos on it?
m
That was the one. Thanks.
m
Keeping resources active in the background
section is what you are probably looking for
m
indeed
m
“It is preferred to the regular collectAsState” that will answer why