đź‘‹ I have a question regarding
collectAsStateWithLifecycle()
.
Could it be an issue to call this on the same state flow multiple times in different locations?
(Maybe because the underlying produce state gets the same key?)
We currently have some flaky tests and I figured out that some unused
collectAsStateWithLifecycle()
(consumed value is in test case mocked and used subvalue always false) causes the other
collectAsStateWithLifecycle()
to not launch again.
Tldr: If I remove a call to
collectAsStateWithLifecycle()
in one place the other place gets called reliable.