Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Conversation

@csadilek
Copy link
Contributor

Details in #9017 and in source comments below. :)

TL;DR: It's possible for the owning view/fragment to be destroyed before the flow is produced (this happens async on another coroutine). We would then create a subscription and never unsubscribe because onDestroy already happened, leaking the subscription and owner.

Alternatively, I've tried checking owner.lifecycle.currentState directly in channelFlow but that doesn't work reliably whereas this does.

STR in Fenix:
Open new private tab
Switch to regular tab
Switch back to private mode

@pocmo pocmo added the 🛬 needs landing PRs that are ready to land label Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🛬 needs landing PRs that are ready to land

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants