Skip to content
Discussion options

You must be logged in to vote

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 extend LifecycleOwner interface (no need to implement, already done via ComponentContext). The you can propagate LocalLifecycleOwner manually for you child inside Children {...} or ChildStack {...}.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Ilya193
Comment options

You must be logged in to vote
3 replies
@arkivanov
Comment options

@Ilya193
Comment options

@arkivanov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants