Jonas
11/13/2023, 9:25 AMcollectAsStateWithLifecycle()
.
Could it be an issue to call this on the same state flow multiple times in different locations?
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.Just copy pasted the implementation of(Maybe because the underlying produce state gets the same key?)
collectAsStateWithLifecycle()
and added a second key to the produce state function: same issue.Zach Klippenstein (he/him) [MOD]
11/13/2023, 2:24 PM