-
Is it possible to pass decompose component to fragment constructor using fragment factory? |
Beta Was this translation helpful? Give feedback.
Answered by
arkivanov
Jan 20, 2025
Replies: 1 comment 3 replies
-
A component is a normal object,but should be possible. Are there any specific issues or concerns? What's the use case? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it's not good to mix Decompose and Fragment navigation. If you are using fragments, you can create each child component independently as a root, using
defaultComponentContext()
function of that Fragment.Permanent child components created via
childContext()
can't be destroyed.