Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Jetpack compose and fragments

If there is some lifecycle related event like unSubscribe or dispose, how is it possible to use compose without fragments’ lifecycle?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

If you need to observe lifecycle events on the fragment or activity, you can use LocalLifecycleOwner.

If you want to subscribe to some observable and ensure it gets disposed when the composable leaves the comosition, you can use Disposable Effect.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading