Answered by
arkivanov
Dec 19, 2025
Replies: 3 comments 3 replies
|
correction: LifecycleOwner is from androidx.lifecycle |
0 replies
|
Decompose does nothing with |
0 replies
Answer selected by
Ilya193
|
Please tell me, is there an example in the documentation? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Decompose does nothing with
LocalLifecycleOwner, so it's probably returns the hosting Activity (or Fragment). The recommended way is to handle lifecycle things in your components. If you really need it Compose, then you would have to do it manually: let your component extendLifecycleOwnerinterface (no need to implement, already done viaComponentContext). The you can propagateLocalLifecycleOwnermanually for you child insideChildren {...}orChildStack {...}.